core

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package core represents types and helpers that are used throughout the bundle.

Index

Constants

This section is empty.

Variables

View Source
var EmptyClusterObjectKey = ClusterObjectKey{}

Functions

func ObjectAPIVersion

func ObjectAPIVersion(obj *structpb.Struct) string

ObjectName gets the Object name from a cluster object.

func ObjectKind

func ObjectKind(obj *structpb.Struct) string

ObjectName gets the Object name from a cluster object.

func ObjectName

func ObjectName(obj *structpb.Struct) string

ObjectName gets the Object name from a cluster object.

Types

type ClusterObjectKey

type ClusterObjectKey struct {
	// ComponentName represents the name of the component the object lives within.
	ComponentName string

	// ObjectName represents the name of the object.
	ObjectName string
}

ClusterObjectKey is a key representing a specific cluster object.

type ObjectRef

type ObjectRef struct {
	// The API Version for an Object.
	APIVersion string

	// The Kind for an Object.
	Kind string

	// The Name of an Object.
	Name string
}

ObjectRef is a stripped-down version of the Kubernetes corev1.ObjectReference type.

func ObjectRefFromStruct

func ObjectRefFromStruct(o *structpb.Struct) ObjectRef

Jump to

Keyboard shortcuts

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