resource

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PodType = "pod"
)

Variables

View Source
var (
	ErrKubectlConnection = errors.New("kubectl connection error")
)

Functions

This section is empty.

Types

type Base added in v0.39.0

type Base struct {
	// contains filtered or unexported fields
}

func (*Base) IsStatusCheckComplete added in v0.39.0

func (b *Base) IsStatusCheckComplete() bool

func (*Base) Name added in v0.39.0

func (b *Base) Name() string

func (*Base) ReportSinceLastUpdated added in v0.39.0

func (b *Base) ReportSinceLastUpdated() string

func (*Base) Status added in v0.39.0

func (b *Base) Status() Status

func (*Base) String added in v0.39.0

func (b *Base) String() string

type Deployment

type Deployment struct {
	*Base
	// contains filtered or unexported fields
}

func NewDeployment

func NewDeployment(name string, ns string, deadline time.Duration) *Deployment

func (*Deployment) CheckStatus added in v0.39.0

func (d *Deployment) CheckStatus(ctx context.Context, runCtx *runcontext.RunContext)

func (*Deployment) Deadline

func (d *Deployment) Deadline() time.Duration

func (*Deployment) UpdateStatus

func (d *Deployment) UpdateStatus(details string, err error)

type Pod added in v0.39.0

type Pod struct {
	*Base
}

func NewPod added in v0.39.0

func NewPod(name string, ns string) *Pod

func (*Pod) CheckStatus added in v0.39.0

func (p *Pod) CheckStatus(ctx context.Context, runCtx *runcontext.RunContext)

func (*Pod) Deadline added in v0.39.0

func (p *Pod) Deadline() time.Duration

type Status

type Status struct {
	// contains filtered or unexported fields
}

func (Status) Equal added in v0.39.0

func (rs Status) Equal(other Status) bool

func (Status) Error

func (rs Status) Error() error

func (Status) String

func (rs Status) String() string

Jump to

Keyboard shortcuts

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