component

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RegistryAddressEnvVar = "REGISTRY_ADDRESS"
	BaseS2iImage          = "BASE_S2I_IMAGE"
)

Variables

This section is empty.

Functions

func PVCName added in v0.2.0

func PVCName(c *halkyon.Component) string

func PopulateK8sLabels added in v0.2.0

func PopulateK8sLabels(component *component.Component, componentType string) map[string]string

func ServiceAccountName added in v0.2.0

func ServiceAccountName(owner v1beta1.HalkyonResource) string

func TaskName added in v0.2.0

func TaskName(owner v1beta1.HalkyonResource) string

Types

type Component added in v0.2.0

type Component struct {
	*halkyon.Component
	*framework.BaseResource
}

func NewComponent added in v0.2.0

func NewComponent() *Component

func (*Component) CheckValidity added in v0.2.0

func (in *Component) CheckValidity() error

func (*Component) ComputeStatus added in v0.2.0

func (in *Component) ComputeStatus() (needsUpdate bool)

func (*Component) CreateOrUpdate added in v0.2.0

func (in *Component) CreateOrUpdate() (err error)

func (*Component) Delete added in v0.2.0

func (in *Component) Delete() error

func (*Component) DependentStatusFieldName added in v0.2.0

func (in *Component) DependentStatusFieldName() string

func (*Component) GetAsHalkyonResource added in v0.2.0

func (in *Component) GetAsHalkyonResource() v1beta1.HalkyonResource

func (*Component) GetStatusAsString added in v0.2.0

func (in *Component) GetStatusAsString() string

func (*Component) Init added in v0.2.0

func (in *Component) Init() bool

func (*Component) InitDependentResources added in v0.2.0

func (in *Component) InitDependentResources() ([]framework.DependentResource, error)

func (*Component) NewEmpty added in v0.2.0

func (in *Component) NewEmpty() framework.Resource

func (*Component) SetErrorStatus added in v0.2.0

func (in *Component) SetErrorStatus(err error) bool

func (*Component) SetInitialStatus added in v0.2.0

func (in *Component) SetInitialStatus(msg string) bool

func (*Component) SetSuccessStatus added in v0.2.0

func (in *Component) SetSuccessStatus(statuses []framework.DependentResourceStatus, msg string) bool

func (*Component) ShouldDelete added in v0.2.0

func (in *Component) ShouldDelete() bool

type Runtime added in v0.2.0

type Runtime struct {
	RegistryRef string
	// contains filtered or unexported fields
}

type RuntimeRegistry added in v0.2.0

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

Jump to

Keyboard shortcuts

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