vanilla

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterScopedResources = set.FromSlice([]string{"ClusterRole", "ClusterRoleBinding", "CustomResourceDefinition"})
)

Functions

func Run

func Run(path string)

Run

TODO why is this file here?  it doesn't seem to be used?

Types

type KubeResources

type KubeResources struct {
	// Order: kind, name
	ClusterScoped map[string]map[string]*Node
	// Order: kind, namespace, name
	Namespaced map[string]map[string]map[string]*Node
}

func ParseResources

func ParseResources(values []interface{}) (*KubeResources, error)

func (*KubeResources) Add

func (k *KubeResources) Add(node *Node) error

type Node

type Node struct {
	Kind       string
	Namespace  *string
	Name       string
	References []*Node
}

func NewNode

func NewNode(kind string, namespace string, name string) *Node

func (*Node) IsClusterScoped

func (n *Node) IsClusterScoped() bool

func (*Node) ResolvedNamespace

func (n *Node) ResolvedNamespace() string

Jump to

Keyboard shortcuts

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