Documentation
¶
Index ¶
- Variables
- func ValidateServices(services []string) error
- type EBSVolumeSource
- type EnvFrom
- type EnvFromSource
- type Mount
- type NameValue
- type NameValueSource
- type S3EnvSource
- type S3VolumeSource
- type SSHD
- type SSMEnvSource
- type SSMVolumeSource
- type SecretsManagerEnvSource
- type SecretsManagerVolumeSource
- type SecurityContext
- type VMSpec
- type Volume
- type Volumes
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultServices = []string{"chrony", "ssh"}
Functions ¶
func ValidateServices ¶
Types ¶
type EBSVolumeSource ¶
type EnvFrom ¶
type EnvFrom struct {
Prefix string `json:"prefix,omitempty"`
S3 *S3EnvSource `json:"s3,omitempty"`
SecretsManager *SecretsManagerEnvSource `json:"secrets-manager,omitempty"`
SSM *SSMEnvSource `json:"ssm,omitempty"`
}
type EnvFromSource ¶
type EnvFromSource []EnvFrom
type NameValueSource ¶
type NameValueSource []NameValue
func (NameValueSource) Find ¶
func (n NameValueSource) Find(key string) (string, int)
Find returns the value of the item at key with its index, or -1 if not found.
func (NameValueSource) ToStrings ¶
func (n NameValueSource) ToStrings() []string
type S3EnvSource ¶
type S3VolumeSource ¶
type SSMEnvSource ¶
type SSMVolumeSource ¶
type SecretsManagerEnvSource ¶
type SecurityContext ¶
type VMSpec ¶
type VMSpec struct {
Args []string `json:"args,omitempty"`
Command []string `json:"command,omitempty"`
Debug bool `json:"debug,omitempty"`
DisableServices []string `json:"disable-services,omitempty"`
Env NameValueSource `json:"env,omitempty"`
EnvFrom EnvFromSource `json:"env-from,omitempty"`
InitScripts []string `json:"init-scripts,omitempty"`
ReplaceInit bool `json:"replace-init,omitempty"`
Security SecurityContext `json:"security,omitempty"`
ShutdownGracePeriod int `json:"shutdown-grace-period,omitempty"`
Sysctls NameValueSource `json:"sysctls,omitempty"`
Volumes Volumes `json:"volumes,omitempty"`
WorkingDir string `json:"working-dir,omitempty"`
}
func (*VMSpec) SetDefaults ¶
func (v *VMSpec) SetDefaults()
type Volume ¶
type Volume struct {
EBS *EBSVolumeSource `json:"ebs,omitempty"`
SecretsManager *SecretsManagerVolumeSource `json:"secrets-manager,omitempty"`
SSM *SSMVolumeSource `json:"ssm,omitempty"`
S3 *S3VolumeSource `json:"s3,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.