common

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalYAML

func MarshalYAML(sth interface{}) []byte

Types

type Allowed

type Allowed struct {
	Port     string
	Protocol string
}

type Firewall

type Firewall map[string]*Allowed

func (Firewall) Contains

func (f Firewall) Contains(other Firewall) bool

func (Firewall) IsContainedIn

func (f Firewall) IsContainedIn(ports []*Allowed) bool

func (*Firewall) Merge

func (f *Firewall) Merge(fw Firewall)

func (*Firewall) Ports

func (f *Firewall) Ports() []*Allowed

type NodeAgentCurrent

type NodeAgentCurrent struct {
	NodeIsReady bool `mapstructure:"ready" yaml:"ready"`
	Software    Software
	Open        []*Allowed
	Commit      string
}

type NodeAgentSpec

type NodeAgentSpec struct {
	ChangesAllowed bool
	//	RebootEnabled  bool
	Software *Software
	Firewall *Firewall
}

type NodeAgentsCurrentKind

type NodeAgentsCurrentKind struct {
	Kind    string
	Version string
	Current map[string]*NodeAgentCurrent `yaml:",omitempty"`
}

type NodeAgentsDesiredKind

type NodeAgentsDesiredKind struct {
	Kind    string
	Version string
	Spec    NodeAgentsSpec `yaml:",omitempty"`
}

type NodeAgentsSpec

type NodeAgentsSpec struct {
	Commit     string
	NodeAgents map[string]*NodeAgentSpec
}

type Package

type Package struct {
	Version string            `yaml:",omitempty"`
	Config  map[string]string `yaml:",omitempty"`
}

func (Package) Equals

func (p Package) Equals(other Package) bool

type Software

type Software struct {
	Swap             Package `yaml:",omitempty"`
	Kubelet          Package `yaml:",omitempty"`
	Kubeadm          Package `yaml:",omitempty"`
	Kubectl          Package `yaml:",omitempty"`
	Containerruntime Package `yaml:",omitempty"`
	KeepaliveD       Package `yaml:",omitempty"`
	Nginx            Package `yaml:",omitempty"`
	SSHD             Package `yaml:",omitempty"`
	Hostname         Package `yaml:",omitempty"`
}

func (*Software) Contains

func (this *Software) Contains(that Software) bool

func (*Software) Defines

func (this *Software) Defines(that Software) bool

func (*Software) Merge

func (s *Software) Merge(sw Software)

Jump to

Keyboard shortcuts

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