resourcegraph

package
v0.0.0-...-5152f1c Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Quote

func Quote(id string) string

Quote takes an arbitrary DOT ID and escapes any quotes that is contains. The resulting string is quoted again to guarantee that it is a valid ID. DOT graph IDs can be any double-quoted string See http://www.graphviz.org/doc/info/lang.html

Types

type Resource

type Resource interface {
	Add(resources Resources) Resource
	From(Resource) Resource
	Note(note string) Resource

	fmt.Stringer
	GetNote() string
	Coordinates() ResourceCoordinates
	Sources() []Resource
	Dump(indentDepth int) []string
	DumpSources(indentDepth int) []string
}

func NewConfig

func NewConfig(resource string) Resource

func NewConfigMap

func NewConfigMap(namespace, name string) Resource

func NewOperator

func NewOperator(name string) Resource

func NewResource

func NewResource(coordinates ResourceCoordinates) Resource

func NewSecret

func NewSecret(namespace, name string) Resource

type ResourceCoordinates

type ResourceCoordinates struct {
	Group     string
	Resource  string
	Namespace string
	Name      string
}

func NewCoordinates

func NewCoordinates(group, resource, namespace, name string) ResourceCoordinates

func (ResourceCoordinates) String

func (c ResourceCoordinates) String() string

type Resources

type Resources interface {
	Add(resource Resource)
	Dump() []string
	AllResources() []Resource
	Resource(coordinates ResourceCoordinates) Resource
	Roots() []Resource
	NewGraph() graph.Directed
}

func NewResources

func NewResources() Resources

Jump to

Keyboard shortcuts

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