Documentation ¶
Index ¶
- func CertificateLoadLocals() (map[string]Certificate, error)
- type Certificate
- type KontenaCertificate
- type KontenaSecret
- type KontenaService
- type KontenaServiceDeploy
- type KontenaServiceExtends
- type KontenaServiceHealthCheck
- type KontenaServiceHook
- type KontenaServiceLogging
- type KontenaStack
- type KontenaVolume
- type Registry
- type Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificateLoadLocals ¶
func CertificateLoadLocals() (map[string]Certificate, error)
CertificateLoadLocals ...
Types ¶
type Certificate ¶
type Certificate struct { Domain string `yaml:"domain,omitempty"` Bundle string `yaml:"bundle,omitempty"` Type string `yaml:"type,omitempty"` AlternativeNames []string `yaml:"alternative_names,omitempty"` }
Certificate ...
type KontenaCertificate ¶
type KontenaCertificate struct { Subject string `yaml:"subject,omitempty"` Name string `yaml:"name,omitempty"` Type string `yaml:"type,omitempty"` }
KontenaCertificate ...
type KontenaSecret ¶
type KontenaSecret struct { Secret string `yaml:"secret,omitempty"` Name string `yaml:"name,omitempty"` Type string `yaml:"type,omitempty"` }
KontenaSecret ...
type KontenaService ¶
type KontenaService struct { Image string `yaml:"image,omitempty"` Instances *int `yaml:"instances,omitempty"` Stateful bool `yaml:"stateful,omitempty"` Command string `yaml:"command,omitempty"` Volumes []string `yaml:"volumes"` VolumesFrom []string `yaml:"volumes_from"` Environment []string `yaml:"environment"` EnvFile string `yaml:"env_file,omitempty"` Links []string `yaml:"links"` DependsOn []string `yaml:"depends_on"` Ports []string `yaml:"ports"` Affinity []string `yaml:"affinity"` CapAdd []string `yaml:"cap_add"` CapDrop []string `yaml:"cap_drop"` MemLimit string `yaml:"mem_limit,omitempty"` MemswapLimit string `yaml:"memswap_limit,omitempty"` StopGracePeriod string `yaml:"stop_grace_period,omitempty"` NetworkMode string `yaml:"network_mode,omitempty"` Pid string `yaml:"pid,omitempty"` Privileged bool `yaml:"privileged,omitempty"` User string `yaml:"user,omitempty"` Secrets []KontenaSecret `yaml:"secrets"` Certificates []KontenaCertificate `yaml:"certificates"` Hooks map[string]KontenaServiceHook `yaml:"hooks"` Extends KontenaServiceExtends `yaml:"extends,omitempty"` Deploy KontenaServiceDeploy `yaml:"deploy,omitempty"` Logging KontenaServiceLogging `yaml:"logging,omitempty"` HealthCheck KontenaServiceHealthCheck `yaml:"health_check,omitempty"` }
KontenaService ...
type KontenaServiceDeploy ¶
type KontenaServiceDeploy struct { Strategy string `yaml:"strategy,omitempty"` WaitForPort int `yaml:"wait_for_port,omitempty"` MinHealth float32 `yaml:"min_health,omitempty"` Interval string `yaml:"interval,omitempty"` }
KontenaServiceDeploy ...
type KontenaServiceExtends ¶
type KontenaServiceExtends struct { File string `yaml:"file,omitempty"` Service string `yaml:"service,omitempty"` }
KontenaServiceExtends ...
type KontenaServiceHealthCheck ¶
type KontenaServiceHealthCheck struct { Protocol string `yaml:"protocol,omitempty"` Port int `yaml:"port,omitempty"` Interval int `yaml:"interval,omitempty"` URI string `yaml:"uri,omitempty"` InitialDelay int `yaml:"initial_delay,omitempty"` Timeout int `yaml:"timeout,omitempty"` }
KontenaServiceHealthCheck ...
type KontenaServiceHook ¶
type KontenaServiceHook struct { Name string `yaml:"name,omitempty"` Cmd string `yaml:"cmd,omitempty"` Instance string `yaml:"instance,omitempty"` OneShot bool `yaml:"one_shot,omitempty"` }
KontenaServiceHook ...
type KontenaServiceLogging ¶
type KontenaServiceLogging struct { Driver string `yaml:"driver,omitempty"` Options map[string]string `yaml:"options,omitempty"` }
KontenaServiceLogging ...
type KontenaStack ¶
type KontenaStack struct { Name string `yaml:"stack,omitempty"` Version string `yaml:"version,omitempty"` Expose string `yaml:"expose,omitempty"` Services map[string]KontenaService `yaml:"services"` Volumes map[string]KontenaVolume `yaml:"volumes"` }
KontenaStack ...
func (KontenaStack) ExportTemporary ¶
func (c KontenaStack) ExportTemporary(translateSecrets bool) (string, error)
ExportTemporary ...
type KontenaVolume ¶
type KontenaVolume struct {
External bool `yaml:"external,omitempty"`
}
KontenaVolume ...
Click to show internal directories.
Click to hide internal directories.