cluster

package
v0.0.0-...-4d5a555 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrResourceNotFound

func ErrResourceNotFound(name string) error

Types

type Cluster

type Cluster interface {
	Export() ([]byte, error)
	Sync(SyncDef) error
}

The things we can get from the running cluster. These used to form the remote.Platform interface; but now we do more in the daemon so they are distinct interfaces.

type ManifestError

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

type Manifests

type Manifests interface {
	// Load all the resource manifests under the path given. `baseDir`
	// is used to relativise the paths, which are supplied as absolute
	// paths to directories or files; at least one path must be
	// supplied.
	LoadManifests(baseDir, first string, rest ...string) (map[string]resource.Resource, []string, error)
	// Parse the manifests given in an exported blob
	ParseManifests([]byte) (map[string]resource.Resource, error)
}

Manifests represents how a set of files are used as definitions of resources, e.g., in Kubernetes, YAML files describing Kubernetes resources.

type ResourceError

type ResourceError struct {
	resource.Resource
	Error error
}

type SyncAction

type SyncAction struct {
	Delete resource.Resource // ) one of these
	Apply  resource.Resource // )
}

SyncAction represents either the deletion or application (create or update) of a resource.

type SyncDef

type SyncDef struct {
	// The actions to undertake
	Actions []SyncAction
}

type SyncError

type SyncError []ResourceError

func (SyncError) Error

func (err SyncError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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