services

package
v0.5.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MPL-2.0 Imports: 59 Imported by: 0

Documentation

Overview

nolint: dupl,golint

nolint: dupl,golint

nolint: dupl,golint

nolint: dupl,golint

nolint: dupl,golint

nolint: dupl,golint

nolint: dupl,golint

nolint: dupl,golint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDirEmpty added in v0.3.0

func IsDirEmpty(name string) (bool, error)

IsDirEmpty checks if a directory is empty or not.

Types

type APID added in v0.3.0

type APID struct{}

APID implements the Service interface. It serves as the concrete type with the required methods.

func (*APID) Condition added in v0.3.0

func (o *APID) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*APID) DependsOn added in v0.3.0

func (o *APID) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*APID) HealthFunc added in v0.3.0

func (o *APID) HealthFunc(runtime.Runtime) health.Check

HealthFunc implements the HealthcheckedService interface

func (*APID) HealthSettings added in v0.3.0

func (o *APID) HealthSettings(runtime.Runtime) *health.Settings

HealthSettings implements the HealthcheckedService interface

func (*APID) ID added in v0.3.0

func (o *APID) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*APID) PostFunc added in v0.3.0

func (o *APID) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*APID) PreFunc added in v0.3.0

func (o *APID) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*APID) Runner added in v0.3.0

func (o *APID) Runner(r runtime.Runtime) (runner.Runner, error)

type Bootkube added in v0.3.0

type Bootkube struct {
	Recover bool
	// contains filtered or unexported fields
}

Bootkube implements the Service interface. It serves as the concrete type with the required methods.

func (*Bootkube) Condition added in v0.3.0

func (b *Bootkube) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*Bootkube) DependsOn added in v0.3.0

func (b *Bootkube) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*Bootkube) ID added in v0.3.0

func (b *Bootkube) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*Bootkube) PostFunc added in v0.3.0

func (b *Bootkube) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

This is temorary and should be removed once we remove the init node type.

func (*Bootkube) PreFunc added in v0.3.0

func (b *Bootkube) PreFunc(ctx context.Context, r runtime.Runtime) (err error)

PreFunc implements the Service interface.

func (*Bootkube) Runner added in v0.3.0

func (b *Bootkube) Runner(r runtime.Runtime) (runner.Runner, error)

Runner implements the Service interface.

type CRI added in v0.5.0

type CRI struct{}

CRI implements the Service interface. It serves as the concrete type with the required methods.

func (*CRI) Condition added in v0.5.0

func (c *CRI) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*CRI) DependsOn added in v0.5.0

func (c *CRI) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*CRI) HealthFunc added in v0.5.0

func (c *CRI) HealthFunc(runtime.Runtime) health.Check

HealthFunc implements the HealthcheckedService interface

func (*CRI) HealthSettings added in v0.5.0

func (c *CRI) HealthSettings(runtime.Runtime) *health.Settings

HealthSettings implements the HealthcheckedService interface

func (*CRI) ID added in v0.5.0

func (c *CRI) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*CRI) PostFunc added in v0.5.0

func (c *CRI) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*CRI) PreFunc added in v0.5.0

func (c *CRI) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*CRI) Runner added in v0.5.0

func (c *CRI) Runner(r runtime.Runtime) (runner.Runner, error)

Runner implements the Service interface.

type Containerd

type Containerd struct{}

Containerd implements the Service interface. It serves as the concrete type with the required methods.

func (*Containerd) Condition

func (c *Containerd) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*Containerd) DependsOn

func (c *Containerd) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*Containerd) HealthFunc

func (c *Containerd) HealthFunc(runtime.Runtime) health.Check

HealthFunc implements the HealthcheckedService interface

func (*Containerd) HealthSettings

func (c *Containerd) HealthSettings(runtime.Runtime) *health.Settings

HealthSettings implements the HealthcheckedService interface

func (*Containerd) ID

func (c *Containerd) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*Containerd) PostFunc

func (c *Containerd) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*Containerd) PreFunc

func (c *Containerd) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*Containerd) Runner

func (c *Containerd) Runner(r runtime.Runtime) (runner.Runner, error)

Runner implements the Service interface.

type Etcd added in v0.3.0

type Etcd struct {
	Bootstrap bool
	// contains filtered or unexported fields
}

Etcd implements the Service interface. It serves as the concrete type with the required methods.

func (*Etcd) Condition added in v0.3.0

func (e *Etcd) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*Etcd) DependsOn added in v0.3.0

func (e *Etcd) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*Etcd) HealthFunc added in v0.3.0

func (e *Etcd) HealthFunc(runtime.Runtime) health.Check

HealthFunc implements the HealthcheckedService interface

func (*Etcd) HealthSettings added in v0.3.0

func (e *Etcd) HealthSettings(runtime.Runtime) *health.Settings

HealthSettings implements the HealthcheckedService interface

func (*Etcd) ID added in v0.3.0

func (e *Etcd) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*Etcd) PostFunc added in v0.3.0

func (e *Etcd) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*Etcd) PreFunc added in v0.3.0

func (e *Etcd) PreFunc(ctx context.Context, r runtime.Runtime) (err error)

PreFunc implements the Service interface.

func (*Etcd) Runner added in v0.3.0

func (e *Etcd) Runner(r runtime.Runtime) (runner.Runner, error)

Runner implements the Service interface.

type Kubelet

type Kubelet struct{}

Kubelet implements the Service interface. It serves as the concrete type with the required methods.

func (*Kubelet) Condition

func (k *Kubelet) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*Kubelet) DependsOn

func (k *Kubelet) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*Kubelet) HealthFunc

func (k *Kubelet) HealthFunc(runtime.Runtime) health.Check

HealthFunc implements the HealthcheckedService interface

func (*Kubelet) HealthSettings

func (k *Kubelet) HealthSettings(runtime.Runtime) *health.Settings

HealthSettings implements the HealthcheckedService interface

func (*Kubelet) ID

func (k *Kubelet) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*Kubelet) PostFunc

func (k *Kubelet) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*Kubelet) PreFunc

func (k *Kubelet) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*Kubelet) Runner

func (k *Kubelet) Runner(r runtime.Runtime) (runner.Runner, error)

Runner implements the Service interface.

type Machined added in v0.5.0

type Machined struct {
	Controller runtime.Controller
}

Machined implements the Service interface. It serves as the concrete type with the required methods.

func (*Machined) Condition added in v0.5.0

func (m *Machined) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*Machined) DependsOn added in v0.5.0

func (m *Machined) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*Machined) ID added in v0.5.0

func (m *Machined) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*Machined) PostFunc added in v0.5.0

func (m *Machined) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*Machined) PreFunc added in v0.5.0

func (m *Machined) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*Machined) Runner added in v0.5.0

func (m *Machined) Runner(r runtime.Runtime) (runner.Runner, error)

Runner implements the Service interface.

type Networkd

type Networkd struct{}

Networkd implements the Service interface. It serves as the concrete type with the required methods.

func (*Networkd) Condition

func (n *Networkd) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*Networkd) DependsOn

func (n *Networkd) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*Networkd) HealthFunc added in v0.3.0

func (n *Networkd) HealthFunc(cfg runtime.Configurator) health.Check

HealthFunc implements the HealthcheckedService interface

func (*Networkd) HealthSettings added in v0.3.0

func (n *Networkd) HealthSettings(runtime.Runtime) *health.Settings

HealthSettings implements the HealthcheckedService interface

func (*Networkd) ID

func (n *Networkd) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*Networkd) PostFunc

func (n *Networkd) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*Networkd) PreFunc

func (n *Networkd) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*Networkd) Runner

func (n *Networkd) Runner(r runtime.Runtime) (runner.Runner, error)

type OSD

type OSD struct{}

OSD implements the Service interface. It serves as the concrete type with the required methods.

func (*OSD) Condition

func (o *OSD) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*OSD) DependsOn

func (o *OSD) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*OSD) HealthFunc

func (o *OSD) HealthFunc(runtime.Runtime) health.Check

HealthFunc implements the HealthcheckedService interface

func (*OSD) HealthSettings

func (o *OSD) HealthSettings(runtime.Runtime) *health.Settings

HealthSettings implements the HealthcheckedService interface

func (*OSD) ID

func (o *OSD) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*OSD) PostFunc

func (o *OSD) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*OSD) PreFunc

func (o *OSD) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*OSD) Runner

func (o *OSD) Runner(r runtime.Runtime) (runner.Runner, error)

type Routerd added in v0.4.0

type Routerd struct{}

Routerd implements the Service interface. It serves as the concrete type with the required methods.

func (*Routerd) Condition added in v0.4.0

func (o *Routerd) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*Routerd) DependsOn added in v0.4.0

func (o *Routerd) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*Routerd) HealthFunc added in v0.4.0

func (o *Routerd) HealthFunc(runtime.Runtime) health.Check

HealthFunc implements the HealthcheckedService interface

func (*Routerd) HealthSettings added in v0.4.0

func (o *Routerd) HealthSettings(runtime.Runtime) *health.Settings

HealthSettings implements the HealthcheckedService interface

func (*Routerd) ID added in v0.4.0

func (o *Routerd) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*Routerd) PostFunc added in v0.4.0

func (o *Routerd) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*Routerd) PreFunc added in v0.4.0

func (o *Routerd) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*Routerd) Runner added in v0.4.0

func (o *Routerd) Runner(r runtime.Runtime) (runner.Runner, error)

type Timed added in v0.5.0

type Timed struct{}

Timed implements the Service interface. It serves as the concrete type with the required methods.

func (*Timed) APIRestartAllowed added in v0.5.0

func (n *Timed) APIRestartAllowed(r runtime.Runtime) bool

APIRestartAllowed implements the APIRestartableService interface.

func (*Timed) APIStartAllowed added in v0.5.0

func (n *Timed) APIStartAllowed(r runtime.Runtime) bool

APIStartAllowed implements the APIStartableService interface.

func (*Timed) Condition added in v0.5.0

func (n *Timed) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*Timed) DependsOn added in v0.5.0

func (n *Timed) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*Timed) ID added in v0.5.0

func (n *Timed) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*Timed) PostFunc added in v0.5.0

func (n *Timed) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*Timed) PreFunc added in v0.5.0

func (n *Timed) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*Timed) Runner added in v0.5.0

func (n *Timed) Runner(r runtime.Runtime) (runner.Runner, error)

type Trustd

type Trustd struct{}

Trustd implements the Service interface. It serves as the concrete type with the required methods.

func (*Trustd) Condition

func (t *Trustd) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*Trustd) DependsOn

func (t *Trustd) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*Trustd) HealthFunc

func (t *Trustd) HealthFunc(runtime.Runtime) health.Check

HealthFunc implements the HealthcheckedService interface

func (*Trustd) HealthSettings

func (t *Trustd) HealthSettings(runtime.Runtime) *health.Settings

HealthSettings implements the HealthcheckedService interface

func (*Trustd) ID

func (t *Trustd) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*Trustd) PostFunc

func (t *Trustd) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*Trustd) PreFunc

func (t *Trustd) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*Trustd) Runner

func (t *Trustd) Runner(r runtime.Runtime) (runner.Runner, error)

type Udevd

type Udevd struct{}

Udevd implements the Service interface. It serves as the concrete type with the required methods.

func (*Udevd) Condition

func (c *Udevd) Condition(r runtime.Runtime) conditions.Condition

Condition implements the Service interface.

func (*Udevd) DependsOn

func (c *Udevd) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*Udevd) ID

func (c *Udevd) ID(r runtime.Runtime) string

ID implements the Service interface.

func (*Udevd) PostFunc

func (c *Udevd) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*Udevd) PreFunc

func (c *Udevd) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*Udevd) Runner

func (c *Udevd) Runner(r runtime.Runtime) (runner.Runner, error)

Runner implements the Service interface.

type UdevdTrigger

type UdevdTrigger struct{}

UdevdTrigger implements the Service interface. It serves as the concrete type with the required methods.

func (*UdevdTrigger) APIRestartAllowed

func (c *UdevdTrigger) APIRestartAllowed(r runtime.Runtime) bool

APIRestartAllowed implements the APIRestartableService interface.

func (*UdevdTrigger) APIStartAllowed

func (c *UdevdTrigger) APIStartAllowed(r runtime.Runtime) bool

APIStartAllowed implements the APIStartableService interface.

func (*UdevdTrigger) APIStopAllowed

func (c *UdevdTrigger) APIStopAllowed(r runtime.Runtime) bool

APIStopAllowed implements the APIStoppableService interface.

func (*UdevdTrigger) Condition

Condition implements the Service interface.

func (*UdevdTrigger) DependsOn

func (c *UdevdTrigger) DependsOn(r runtime.Runtime) []string

DependsOn implements the Service interface.

func (*UdevdTrigger) ID

ID implements the Service interface.

func (*UdevdTrigger) PostFunc

func (c *UdevdTrigger) PostFunc(r runtime.Runtime, state events.ServiceState) (err error)

PostFunc implements the Service interface.

func (*UdevdTrigger) PreFunc

func (c *UdevdTrigger) PreFunc(ctx context.Context, r runtime.Runtime) error

PreFunc implements the Service interface.

func (*UdevdTrigger) Runner

func (c *UdevdTrigger) Runner(r runtime.Runtime) (runner.Runner, error)

Runner implements the Service interface.

Jump to

Keyboard shortcuts

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