stackresources

package
v0.4.24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyStackState = &StackState{
	Deployments:  make(map[string]appstypes.Deployment),
	Statefulsets: make(map[string]appstypes.StatefulSet),
	Daemonsets:   make(map[string]appstypes.DaemonSet),
	Services:     make(map[string]coretypes.Service),
}

EmptyStackState is an empty StackState

Functions

func ObjKey

func ObjKey(namespace, name string) string

ObjKey returns the key of a k8s object

Types

type StackState

type StackState struct {
	Deployments  map[string]appstypes.Deployment
	Statefulsets map[string]appstypes.StatefulSet
	Daemonsets   map[string]appstypes.DaemonSet
	Services     map[string]coretypes.Service
}

StackState holds resources created for a stack

func NewStackState

func NewStackState(objects ...interface{}) (*StackState, error)

NewStackState creates a StackState from a list of existing resources

func (*StackState) FlattenResources

func (s *StackState) FlattenResources() []interface{}

FlattenResources returns all resources in an untyped slice

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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