clients

package
v0.0.0-...-0ff0f7b Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToUnstructured

func ToUnstructured(obj runtime.Object) (*unstructured.Unstructured, error)

Types

type ChangeSet

type ChangeSet = ssa.ChangeSet

type ClientMaker

type ClientMaker struct {
	*ClientMakerBase

	ResourceMetadataTemplate v1.ObjectMeta
	// contains filtered or unexported fields
}

func NewClientMaker

func NewClientMaker(config *rest.Config, logger klog.Logger) *ClientMaker

func (*ClientMaker) Cleanup

func (m *ClientMaker) Cleanup(ctx context.Context)

func (*ClientMaker) NewNamespacedClientMaker

func (m *ClientMaker) NewNamespacedClientMaker(ctx context.Context, meta *v1.ObjectMeta) (*NamespacedClientMaker, error)

type ClientMakerBase

type ClientMakerBase struct {
	*rest.Config
	// contains filtered or unexported fields
}

func (*ClientMakerBase) NewClientSet

func (m *ClientMakerBase) NewClientSet() (clientgo.Interface, error)

func (*ClientMakerBase) NewControllerRuntimeClient

func (m *ClientMakerBase) NewControllerRuntimeClient() (ctrlClient.Client, error)

func (*ClientMakerBase) NewResourceManager

func (m *ClientMakerBase) NewResourceManager() (*ResourceManager, error)

type NamespacedClientMaker

type NamespacedClientMaker struct {
	*ClientMakerBase

	Namespace                           string
	DefaultControllerRuntimeListOptions *ctrlClient.ListOptions
	ResourceMetadataTemplate            v1.ObjectMeta

	Cleanup func(context.Context)
}

type ResourceManager

type ResourceManager struct {
	*ssa.ResourceManager
	// contains filtered or unexported fields
}

func (*ResourceManager) ApplyLists

func (m *ResourceManager) ApplyLists(ctx context.Context, waitOptions *WaitOptions, objects ...runtime.Object) (*ChangeSet, error)

func (*ResourceManager) ApplyManifest

func (m *ResourceManager) ApplyManifest(ctx context.Context, waitOptions *WaitOptions, r io.Reader) (*ChangeSet, error)

func (*ResourceManager) ToNormalizedList

func (m *ResourceManager) ToNormalizedList(objects ...runtime.Object) ([]*unstructured.Unstructured, error)

type WaitOptions

type WaitOptions = ssa.WaitOptions

Jump to

Keyboard shortcuts

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