package stackresources
import "github.com/docker/compose-on-kubernetes/internal/stackresources"
Index ¶
Variables ¶
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 ¶
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
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal/stackresources/diff |
- Version
- v0.5.0 (latest)
- Published
- Jan 28, 2022
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 5 hours ago –
Tools for package owners.