link

package
v0.0.0-...-389e7ce Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	ObjectPath(namespace, apiVersion, kind, name string) (string, error)
}

type Interface

type Interface interface {
	ForObject(object runtime.Object, text string) (*component.Link, error)
	ForObjectWithQuery(object runtime.Object, text string, query url.Values) (*component.Link, error)
	ForGVK(namespace, apiVersion, kind, name, text string) (*component.Link, error)
	ForOwner(parent runtime.Object, controllerRef *metav1.OwnerReference) (*component.Link, error)
}
type Link struct {
	// contains filtered or unexported fields
}

func NewFromDashConfig

func NewFromDashConfig(config Config) (*Link, error)

func (*Link) ForGVK

func (l *Link) ForGVK(namespace, apiVersion, kind, name, text string) (*component.Link, error)

ForGVK returns a link component referencing an object

func (*Link) ForObject

func (l *Link) ForObject(object runtime.Object, text string) (*component.Link, error)

ForObject returns a link component referencing an object Returns an empty link if an error occurs.

func (*Link) ForObjectWithQuery

func (l *Link) ForObjectWithQuery(object runtime.Object, text string, query url.Values) (*component.Link, error)

ForObjectWithQuery returns a link component references an object with a query. Return an empty link if an error occurs.

func (*Link) ForOwner

func (l *Link) ForOwner(parent runtime.Object, controllerRef *metav1.OwnerReference) (*component.Link, error)

ForOwner returns a link component for an owner.

Jump to

Keyboard shortcuts

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