resource

package
v0.0.0-...-c42b1bb Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name  string
	Image image.Ref
}

type Resource

type Resource interface {
	ResourceID() flux.ResourceID // name, to correlate with what's in the cluster
	Policy() policy.Set          // policy for this resource; e.g., whether it is locked, automated, ignored
	Source() string              // where did this come from (informational)
	Bytes() []byte               // the definition, for sending to cluster.Sync
}

For the minute we just care about

type Workload

type Workload interface {
	Resource
	Containers() []Container
	// SetContainerImage mutates this workload so that the container
	// named has the image given. This is not expected to have an
	// effect on any underlying file or cluster resource.
	SetContainerImage(container string, ref image.Ref) error
}

Jump to

Keyboard shortcuts

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