v1

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceProfile

func NewServiceProfile

func NewServiceProfile(namespace, name string) *ServiceProfile

func (*ServiceProfile) Clone

func (r *ServiceProfile) Clone() resources.Resource

func (*ServiceProfile) Hash

func (r *ServiceProfile) Hash() uint64

type ServiceProfileClient

type ServiceProfileClient interface {
	BaseClient() clients.ResourceClient
	Register() error
	Read(namespace, name string, opts clients.ReadOpts) (*ServiceProfile, error)
	Write(resource *ServiceProfile, opts clients.WriteOpts) (*ServiceProfile, error)
	Delete(namespace, name string, opts clients.DeleteOpts) error
	List(namespace string, opts clients.ListOpts) (ServiceProfileList, error)
	ServiceProfileWatcher
}

func NewServiceProfileClient

func NewServiceProfileClient(rcFactory factory.ResourceClientFactory) (ServiceProfileClient, error)

func NewServiceProfileClientWithBase

func NewServiceProfileClientWithBase(rc clients.ResourceClient) ServiceProfileClient

func NewServiceProfileClientWithToken

func NewServiceProfileClientWithToken(rcFactory factory.ResourceClientFactory, token string) (ServiceProfileClient, error)

type ServiceProfileList

type ServiceProfileList []*ServiceProfile

func (ServiceProfileList) AsInterfaces

func (list ServiceProfileList) AsInterfaces() []interface{}

func (ServiceProfileList) AsResources

func (list ServiceProfileList) AsResources() resources.ResourceList

func (ServiceProfileList) Clone

func (ServiceProfileList) Each

func (list ServiceProfileList) Each(f func(element *ServiceProfile))

func (ServiceProfileList) EachResource added in v0.3.18

func (list ServiceProfileList) EachResource(f func(element resources.Resource))

func (ServiceProfileList) Find

func (list ServiceProfileList) Find(namespace, name string) (*ServiceProfile, error)

namespace is optional, if left empty, names can collide if the list contains more than one with the same name

func (ServiceProfileList) Names

func (list ServiceProfileList) Names() []string

func (ServiceProfileList) NamespacesDotNames

func (list ServiceProfileList) NamespacesDotNames() []string

func (ServiceProfileList) Sort

type ServiceProfileReconciler

type ServiceProfileReconciler interface {
	Reconcile(namespace string, desiredResources ServiceProfileList, transition TransitionServiceProfileFunc, opts clients.ListOpts) error
}

func NewServiceProfileReconciler

func NewServiceProfileReconciler(client ServiceProfileClient) ServiceProfileReconciler

type ServiceProfileWatcher added in v0.3.18

type ServiceProfileWatcher interface {
	// watch namespace-scoped serviceprofiles
	Watch(namespace string, opts clients.WatchOpts) (<-chan ServiceProfileList, <-chan error, error)
}

type TransitionServiceProfileFunc

type TransitionServiceProfileFunc func(original, desired *ServiceProfile) (bool, error)

Option to copy anything from the original to the desired before writing. Return value of false means don't update

Directories

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

Jump to

Keyboard shortcuts

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