provider

package
v0.23.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeProvider

type FakeProvider struct {
	InvClient *inventory.FakeInventoryClient
	// contains filtered or unexported fields
}

func NewFakeProvider

func NewFakeProvider(f util.Factory, objs []object.ObjMetadata) *FakeProvider

func (*FakeProvider) Factory

func (f *FakeProvider) Factory() util.Factory

func (*FakeProvider) InventoryClient

func (f *FakeProvider) InventoryClient() (inventory.InventoryClient, error)

func (*FakeProvider) ToRESTMapper

func (f *FakeProvider) ToRESTMapper() (meta.RESTMapper, error)

type InventoryProvider

type InventoryProvider struct {
	// contains filtered or unexported fields
}

InventoryProvider implements the Provider interface.

func NewProvider

func NewProvider(f util.Factory) *InventoryProvider

NewProvider returns a Provider that implements a ConfigMap inventory object.

func (*InventoryProvider) Factory

func (f *InventoryProvider) Factory() util.Factory

Factory returns the kubectl factory.

func (*InventoryProvider) InventoryClient

func (f *InventoryProvider) InventoryClient() (inventory.InventoryClient, error)

InventoryClient returns an InventoryClient created with the stored factory and InventoryFactoryFunc values, or an error if one occurred.

type Provider

type Provider interface {
	Factory() util.Factory
	InventoryClient() (inventory.InventoryClient, error)
}

Provider is an interface which wraps the kubectl factory and the inventory client.

Jump to

Keyboard shortcuts

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