model

package
v0.0.0-...-59fe875 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 ...

func (Certificate) AllDomains

func (c Certificate) AllDomains() []string

AllDomains ...

func (Certificate) Description

func (c Certificate) Description() string

Description ...

func (Certificate) SecretName

func (c Certificate) SecretName() string

SecretName ...

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"`
	CPUShares       *int                          `yaml:"cpu_shares"`
	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 KontenaLoad

func KontenaLoad(path string) (KontenaStack, error)

KontenaLoad ...

func (KontenaStack) ExportTemporary

func (c KontenaStack) ExportTemporary(translateSecrets bool) (string, error)

ExportTemporary ...

type KontenaVolume

type KontenaVolume struct {
	External bool `yaml:"external,omitempty"`
}

KontenaVolume ...

type Registry

type Registry struct {
	Name     string `yaml:"name,omitempty"`
	User     string `yaml:"username,omitempty"`
	Email    string `yaml:"email,omitempty"`
	Password string `yaml:"password,omitempty"`
}

Registry ...

func RegistriesLoad

func RegistriesLoad(path string) ([]Registry, error)

RegistriesLoad ...

type Secret

type Secret struct {
	Name      string
	CreatedAt time.Time
	UpdatedAt time.Time
}

Secret ...

func SecretParseList

func SecretParseList(rows []string) ([]Secret, error)

SecretParseList ...

Jump to

Keyboard shortcuts

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