configurations

package
v4.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurations

type Configurations interface {
	// Create creates a new configuration.
	Create(ctx context.Context, input CreateConfigurationInput) (resource.Resource, error)
	// Delete deletes a configuration.
	Delete(ctx context.Context, resource resource.Resource) (resource.Resource, error)
}

Configurations groups a set of methods to manage cluster configurations. Configurations are typically used to store configuration information for pods outside the pods themselves. Depending on the Cluster implementation, Configurations can be mounted directly in a pod when running it.

type CreateConfigurationInput

type CreateConfigurationInput struct {
	// Name is the name of the configuration.
	Name string

	// Namespace is the namespace where this configuration will be created.
	Namespace string

	// Labels is the group of key-value pairs that will identify this configuration.
	Labels map[string]string

	// Data contains the set of UTF-8 encoded data that will be stored in this configuration.
	Data map[string]string

	// Data contains the set of binary data that will be stored in this configuration.
	BinaryData map[string][]byte
}

CreateConfigurationInput is the input for creating a new configuration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL