Documentation ¶
Index ¶
- type Conf
- func (c *Conf) AddFile(path, filesystem, contents string, mode int)
- func (c *Conf) AddSystemdUnit(name, contents string, enable bool)
- func (c *Conf) AddSystemdUnitDropin(service, name, contents string)
- func (c *Conf) Bytes() []byte
- func (c *Conf) CopyKeys(keys []*agent.Key)
- func (c *Conf) IsEmpty() bool
- func (c *Conf) IsIgnition() bool
- func (c *Conf) MergeV3(newConfig v3types.Config)
- func (c *Conf) String() string
- func (c *Conf) ValidConfig() bool
- func (c *Conf) WriteFile(name string) error
- type UserData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct {
// contains filtered or unexported fields
}
Conf is a configuration for a Container Linux machine. It may be either a coreos-cloudconfig or an ignition configuration.
func (*Conf) AddSystemdUnit ¶ added in v0.7.0
func (*Conf) AddSystemdUnitDropin ¶ added in v0.8.0
func (*Conf) CopyKeys ¶
CopyKeys copies public keys from agent ag into the configuration to the appropriate configuration section for the core user.
func (*Conf) IsIgnition ¶ added in v0.3.0
IsIgnition returns true if the config is for Ignition. Returns false in the case of empty configs as on most platforms, this will default back to cloudconfig
func (*Conf) MergeV3 ¶ added in v0.13.0
MergeV3 merges a config with the ignitionV3 config via Ignition's merging function.
func (*Conf) ValidConfig ¶ added in v0.13.0
type UserData ¶ added in v0.6.0
type UserData struct {
// contains filtered or unexported fields
}
UserData is an immutable, unvalidated configuration for a Container Linux machine.
func CloudConfig ¶ added in v0.6.0
func ContainerLinuxConfig ¶ added in v0.6.0
func (*UserData) Contains ¶ added in v0.8.0
Contains returns true if the UserData contains the specified string.