client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Age

func Age(obj Ageable) string

func DuckName

func DuckName(duck string) string

func DuckShortName

func DuckShortName(duck string) string

func KnownDucks

func KnownDucks() []string

func ToKnownDuck

func ToKnownDuck(query string) (string, error)

Types

type Ageable

type Ageable interface {
	GetCreationTimestamp() metav1.Time
}

type Client

type Client struct {
	DynamicClient dynamic.Interface
}

func GetClient

func GetClient(cfg *rest.Config) (*Client, error)

func (*Client) Ducks

func (c *Client) Ducks(labelSelector string) []v1beta1.CustomResourceDefinition

Ducks returns CRDs labeled as given. labelSelector should be in the form "duck.knative.dev/source=true"

func (*Client) KResources

func (c *Client) KResources(gvr schema.GroupVersionResource) []duckv1.KResource

type GroupVersionResourceKind

type GroupVersionResourceKind struct {
	Group    string
	Version  string
	Resource string
	Kind     string
}

func (GroupVersionResourceKind) GVK

func (GroupVersionResourceKind) GVR

func (GroupVersionResourceKind) String

func (g GroupVersionResourceKind) String() string

Jump to

Keyboard shortcuts

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