registry

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	Build      *v1.Build
	Definition *resolver.ResolutionTree
}

type Registry

type Registry struct {
	sync.Mutex

	Systems map[v1.SystemID]*SystemRecord
}

func New

func New() *Registry

func (*Registry) CreateBuild

func (r *Registry) CreateBuild(p *tree.Path, v *v1.Version, record *SystemRecord) *v1.Build

both the backend and the controller need the ability to create builds, so it is implemented here.

type ServiceInfo

type ServiceInfo struct {
	Service    *v1.Service
	Definition *definitionv1.Service
}

type SystemRecord

type SystemRecord struct {
	System     *v1.System
	Definition *resolver.ResolutionTree

	Builds map[v1.BuildID]*BuildInfo

	Deploys map[v1.DeployID]*v1.Deploy

	Jobs map[v1.JobID]*v1.Job

	NodePools map[tree.PathSubcomponent]*v1.NodePool

	Secrets map[tree.PathSubcomponent]*v1.Secret

	Services     map[v1.ServiceID]*ServiceInfo
	ServicePaths map[tree.Path]v1.ServiceID

	Teardowns map[v1.TeardownID]*v1.Teardown
}

Jump to

Keyboard shortcuts

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