HttpMethod

The set of HTTP verbs the Krill protocol emits or accepts.

Kept intentionally small: Krill does not need OPTIONS/HEAD on the request side, and responses are modelled separately. Entries map 1:1 onto the corresponding Ktor HTTP method when a request is actually dispatched.

Entries

Link copied to clipboard

Read-only retrieval. Used for fetching node state, snapshots, config. No request body.

Link copied to clipboard

Create or submit. Used for node creation, triggering executors, uploading blobs. Carries a request body.

Link copied to clipboard

Full replace of a resource. Used when a client replaces an entire node's metadata or configuration. Carries a request body.

Link copied to clipboard

Destructive removal. Used to delete a node, peer relationship, or persisted artifact. Body optional.

Link copied to clipboard

Partial update. Used when a client mutates a subset of fields on an existing node without replacing the whole record. Carries a request body.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.