Documentation
¶
Overview ¶
nolint: dupl,golint
nolint: dupl,golint
nolint: dupl,golint
Index ¶
- type CRIO
- type CmdArgs
- type Docker
- func (p *Docker) Cmd(data userdata.UserData, cmdArgs *CmdArgs) error
- func (p *Docker) Condition(data userdata.UserData) func() (bool, error)
- func (p *Docker) Env() []string
- func (p *Docker) Post(data userdata.UserData) (err error)
- func (p *Docker) Pre(data userdata.UserData) error
- func (p *Docker) Type() Type
- type Kubeadm
- func (p *Kubeadm) Cmd(data userdata.UserData, cmdArgs *CmdArgs) error
- func (p *Kubeadm) Condition(data userdata.UserData) func() (bool, error)
- func (p *Kubeadm) Env() []string
- func (p *Kubeadm) Post(data userdata.UserData) (err error)
- func (p *Kubeadm) Pre(data userdata.UserData) (err error)
- func (p *Kubeadm) Type() Type
- type Kubelet
- func (p *Kubelet) Cmd(data userdata.UserData, cmdArgs *CmdArgs) error
- func (p *Kubelet) Condition(data userdata.UserData) func() (bool, error)
- func (p *Kubelet) Env() []string
- func (p *Kubelet) Post(data userdata.UserData) (err error)
- func (p *Kubelet) Pre(data userdata.UserData) error
- func (p *Kubelet) Type() Type
- type Manager
- type OSD
- type ProxyD
- func (p *ProxyD) Cmd(data userdata.UserData, cmdArgs *CmdArgs) error
- func (p *ProxyD) Condition(data userdata.UserData) func() (bool, error)
- func (p *ProxyD) Env() []string
- func (p *ProxyD) Post(data userdata.UserData) (err error)
- func (p *ProxyD) Pre(data userdata.UserData) error
- func (p *ProxyD) Type() Type
- type ROTD
- type Service
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRIO ¶
type CRIO struct{}
CRIO implements the Service interface. It serves as the concrete type with the required methods.
type CmdArgs ¶
CmdArgs represent the options available to services specific to the configuration of their cmd.
type Docker ¶
type Docker struct{}
Docker implements the Service interface. It serves as the concrete type with the required methods.
type Kubeadm ¶
type Kubeadm struct{}
Kubeadm implements the Service interface. It serves as the concrete type with the required methods.
type Kubelet ¶
type Kubelet struct{}
Kubelet implements the Service interface. It serves as the concrete type with the required methods.
type Manager ¶
Manager is a type with helper methods that build a service and invoke the set of methods defined in the Service interface.
type OSD ¶
type OSD struct{}
OSD implements the Service interface. It serves as the concrete type with the required methods.
type ProxyD ¶
type ProxyD struct{}
ProxyD implements the Service interface. It serves as the concrete type with the required methods.
type ROTD ¶
type ROTD struct{}
ROTD implements the Service interface. It serves as the concrete type with the required methods.
type Service ¶
type Service interface {
// Pre is invoked before a command is executed. It is useful for things like
// preparing files that the process might depend on.
Pre(userdata.UserData) error
// Post is invoked after a command is executed.
Post(userdata.UserData) error
// Cmd describes the path to the binary, and the set of arguments to be
// passed into it upon execution.
Cmd(userdata.UserData, *CmdArgs) error
// Condition is invoked just before starting the process.
Condition(userdata.UserData) func() (bool, error)
// Env describes the service's environment variables. Elements should be in
// the format <key=<value>
Env() []string
// Type describes the service's restart policy.
Type() Type
}
Service is an interface describing a process that is to be run as a system level service.