brns

package
v0.0.0-...-614ca16 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrnParts

type BrnParts struct {
	Raw                  string
	Environment          string
	EnvironmentOrCluster string
	Cluster              string
	Stack                string
}

func TryParseStack

func TryParseStack(raw string) BrnParts

type ClusterBrn

type ClusterBrn struct {
	EnvironmentBrn
	ClusterName string
}

func NewCluster

func NewCluster(env string, cluster string) ClusterBrn

func (ClusterBrn) String

func (s ClusterBrn) String() string

type EnvironmentBrn

type EnvironmentBrn struct {
	EnvironmentName string
}

func NewEnvironment

func NewEnvironment(env string) EnvironmentBrn

func (EnvironmentBrn) String

func (s EnvironmentBrn) String() string

type StackBrn

type StackBrn struct {
	ClusterBrn
	StackName string
}

func NewStack

func NewStack(env string, cluster string, stack string) StackBrn

func ParseStack

func ParseStack(raw string) (StackBrn, error)

func (StackBrn) Equals

func (s StackBrn) Equals(brn StackBrn) bool

func (StackBrn) IsEmpty

func (s StackBrn) IsEmpty() bool

func (StackBrn) MarshalYAML

func (s StackBrn) MarshalYAML() (interface{}, error)

func (StackBrn) String

func (s StackBrn) String() string

func (*StackBrn) UnmarshalYAML

func (s *StackBrn) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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