Struct kubernix::Config[][src]

pub struct Config { /* fields omitted */ }
Expand description

The global configuration

Implementations

The logging level of the application

The CIDR used for the cluster

The number of nodes to be registered

All available subcommands

Path where all the runtime data is stored

The Nix package overlay to be used

Additional dependencies to be added to the environment

The shell executable to be used, defaults to $SHELL, fallback is sh

The container runtime to be used for the nodes, irrelevant if nodes equals to 1

Do not spawn an interactive shell after bootstrap

Make the configs root path absolute

Write the current configuration to the internal set root path

Read the configuration from the internal set root path If not existing, write the current configuration to the path.

Return the set shell as result type

Returns true if multi node support is enabled

Trait Implementations

Parse from std::env::args_os(), exit on error

Parse from std::env::args_os(), return Err on error.

Parse from iterator, exit on error

Parse from iterator, return Err on error.

Update from iterator, exit on error

Update from iterator, return Err on error.

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

It’s common to have an “application context” struct (sometimes called config) that represents all the normalized values after being processed by the CLI. Read more

@TODO@ @release @docs

@TODO @release @docs

@TODO @release @docs

@TODO @release @docs

@TODO @release @docs

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.