Documentation ¶
Index ¶
- func CloudConfigFromOperatingSystemConfig(ctx context.Context, log logr.Logger, c client.Client, ...) ([]byte, *string, error)
- func DataForFileContent(ctx context.Context, c client.Client, namespace string, ...) ([]byte, error)
- func NewActuator(osName string, generator generator.Generator) operatingsystemconfig.Actuator
- func OperatingSystemConfigUnitNames(config *extensionsv1alpha1.OperatingSystemConfig) []string
- type Actuator
- func (a *Actuator) Delete(_ context.Context, _ logr.Logger, _ *extensionsv1alpha1.OperatingSystemConfig) error
- func (a *Actuator) InjectClient(client client.Client) error
- func (a *Actuator) InjectScheme(scheme *runtime.Scheme) error
- func (a *Actuator) Migrate(_ context.Context, _ logr.Logger, _ *extensionsv1alpha1.OperatingSystemConfig) error
- func (a *Actuator) Reconcile(ctx context.Context, log logr.Logger, ...) ([]byte, *string, []string, error)
- func (a *Actuator) Restore(ctx context.Context, log logr.Logger, ...) ([]byte, *string, []string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudConfigFromOperatingSystemConfig ¶
func CloudConfigFromOperatingSystemConfig( ctx context.Context, log logr.Logger, c client.Client, config *extensionsv1alpha1.OperatingSystemConfig, generator commonosgenerator.Generator, ) ( []byte, *string, error, )
CloudConfigFromOperatingSystemConfig generates a CloudConfig from an OperatingSystemConfig using a Generator
func DataForFileContent ¶
func DataForFileContent(ctx context.Context, c client.Client, namespace string, content *extensionsv1alpha1.FileContent) ([]byte, error)
DataForFileContent returns the content for a FileContent, retrieving from a Secret if necessary.
func NewActuator ¶
func NewActuator(osName string, generator generator.Generator) operatingsystemconfig.Actuator
NewActuator creates a new actuator with the given logger.
func OperatingSystemConfigUnitNames ¶
func OperatingSystemConfigUnitNames(config *extensionsv1alpha1.OperatingSystemConfig) []string
OperatingSystemConfigUnitNames returns the names of the units in the OperatingSystemConfig
Types ¶
type Actuator ¶
type Actuator struct {
// contains filtered or unexported fields
}
Actuator uses a generator to render an OperatingSystemConfiguration for an Operating System
func (*Actuator) Delete ¶
func (a *Actuator) Delete(_ context.Context, _ logr.Logger, _ *extensionsv1alpha1.OperatingSystemConfig) error
Delete ignores the deletion of OperatingSystemConfig
func (*Actuator) InjectClient ¶
InjectClient injects a Client to the Actuator
func (*Actuator) InjectScheme ¶
InjectScheme injects a runtime Scheme to the Actuator
func (*Actuator) Migrate ¶ added in v1.4.0
func (a *Actuator) Migrate(_ context.Context, _ logr.Logger, _ *extensionsv1alpha1.OperatingSystemConfig) error
Migrate ignores the deletion of OperatingSystemConfig