resource

package
v0.17.6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToClientKey

func ToClientKey(res ezkube.ResourceId) client.ObjectKey

Types

type Client

type Client interface {
	client.Client
}

right now this just allows us to generate mocks for the client. (ilackarms): eventually it might make sense to put clients for non-kube backends in this package

type ClusterSnapshot added in v0.7.17

type ClusterSnapshot map[string]Snapshot

ClusterSnapshot represents a set of snapshots partitioned by cluster

func (ClusterSnapshot) Clone added in v0.7.17

func (cs ClusterSnapshot) Clone() ClusterSnapshot

func (ClusterSnapshot) Delete added in v0.7.17

func (cs ClusterSnapshot) Delete(cluster string, gvk schema.GroupVersionKind, id types.NamespacedName)

func (ClusterSnapshot) ForEachObject added in v0.7.17

func (s ClusterSnapshot) ForEachObject(handleObject func(cluster string, gvk schema.GroupVersionKind, obj TypedObject))

func (ClusterSnapshot) Insert added in v0.7.17

func (cs ClusterSnapshot) Insert(cluster string, gvk schema.GroupVersionKind, obj TypedObject)

type Snapshot added in v0.7.17

Snapshot represents a generic snapshot of client.Objects scoped to a single cluster

func (Snapshot) Clone added in v0.7.17

func (s Snapshot) Clone() Snapshot

func (Snapshot) Delete added in v0.7.17

func (Snapshot) ForEachObject added in v0.7.17

func (s Snapshot) ForEachObject(handleObject func(gvk schema.GroupVersionKind, obj TypedObject))

func (Snapshot) Insert added in v0.7.17

func (s Snapshot) Insert(gvk schema.GroupVersionKind, obj TypedObject)

type TypedObject added in v0.7.17

type TypedObject interface {
	client.Object
	SetGroupVersionKind(gvk schema.GroupVersionKind)
}

a typed object is a client.Object with a TypeMeta

Directories

Path Synopsis
Package mock_resource is a generated GoMock package.
Package mock_resource is a generated GoMock package.

Jump to

Keyboard shortcuts

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