k8s

package
v0.0.0-...-4760111 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(client kube_client.Client, scheme *kube_runtime.Scheme) (store.ResourceStore, error)

Types

type Converter

type Converter interface {
	ToKubernetesObject(core_model.Resource) (k8s_model.KubernetesObject, error)
	ToKubernetesList(core_model.ResourceList) (k8s_model.KubernetesList, error)
	ToCoreResource(obj k8s_model.KubernetesObject, out core_model.Resource) error
	ToCoreList(obj k8s_model.KubernetesList, out core_model.ResourceList, predicate ConverterPredicate) error
}

func DefaultConverter

func DefaultConverter() Converter

type ConverterPredicate

type ConverterPredicate = func(core_model.Resource) bool

type KubeFactory

type KubeFactory interface {
	NewObject(r core_model.Resource) (k8s_model.KubernetesObject, error)
	NewList(rl core_model.ResourceList) (k8s_model.KubernetesList, error)
}

type KubernetesMetaAdapter

type KubernetesMetaAdapter struct {
	kube_meta.ObjectMeta
	Mesh string
}

func (*KubernetesMetaAdapter) GetCreationTime

func (m *KubernetesMetaAdapter) GetCreationTime() time.Time

func (*KubernetesMetaAdapter) GetMesh

func (m *KubernetesMetaAdapter) GetMesh() string

func (*KubernetesMetaAdapter) GetModificationTime

func (m *KubernetesMetaAdapter) GetModificationTime() time.Time

func (*KubernetesMetaAdapter) GetName

func (m *KubernetesMetaAdapter) GetName() string

func (*KubernetesMetaAdapter) GetNameExtensions

func (*KubernetesMetaAdapter) GetVersion

func (m *KubernetesMetaAdapter) GetVersion() string

type KubernetesStore

type KubernetesStore struct {
	Client    kube_client.Client
	Converter Converter
	Scheme    *kube_runtime.Scheme
}

func (*KubernetesStore) Create

func (*KubernetesStore) Delete

func (*KubernetesStore) Get

func (*KubernetesStore) List

func (*KubernetesStore) Update

type SimpleConverter

type SimpleConverter struct {
	KubeFactory KubeFactory
}

func (*SimpleConverter) ToCoreList

func (*SimpleConverter) ToCoreResource

func (c *SimpleConverter) ToCoreResource(obj k8s_model.KubernetesObject, out core_model.Resource) error

func (*SimpleConverter) ToKubernetesList

func (*SimpleConverter) ToKubernetesObject

func (c *SimpleConverter) ToKubernetesObject(r core_model.Resource) (k8s_model.KubernetesObject, error)

type SimpleKubeFactory

type SimpleKubeFactory struct {
	KubeTypes k8s_registry.TypeRegistry
}

func (*SimpleKubeFactory) NewList

func (*SimpleKubeFactory) NewObject

Jump to

Keyboard shortcuts

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