v1alpha1

package
v0.3.23 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 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 TrafficTarget

func NewTrafficTarget

func NewTrafficTarget(namespace, name string) *TrafficTarget

func (*TrafficTarget) Clone

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

func (*TrafficTarget) Hash

func (r *TrafficTarget) Hash() uint64

type TrafficTargetClient

type TrafficTargetClient interface {
	BaseClient() clients.ResourceClient
	Register() error
	Read(namespace, name string, opts clients.ReadOpts) (*TrafficTarget, error)
	Write(resource *TrafficTarget, opts clients.WriteOpts) (*TrafficTarget, error)
	Delete(namespace, name string, opts clients.DeleteOpts) error
	List(namespace string, opts clients.ListOpts) (TrafficTargetList, error)
	TrafficTargetWatcher
}

func NewTrafficTargetClient

func NewTrafficTargetClient(rcFactory factory.ResourceClientFactory) (TrafficTargetClient, error)

func NewTrafficTargetClientWithBase

func NewTrafficTargetClientWithBase(rc clients.ResourceClient) TrafficTargetClient

func NewTrafficTargetClientWithToken

func NewTrafficTargetClientWithToken(rcFactory factory.ResourceClientFactory, token string) (TrafficTargetClient, error)

type TrafficTargetList

type TrafficTargetList []*TrafficTarget

func (TrafficTargetList) AsInterfaces

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

func (TrafficTargetList) AsResources

func (list TrafficTargetList) AsResources() resources.ResourceList

func (TrafficTargetList) Clone

func (list TrafficTargetList) Clone() TrafficTargetList

func (TrafficTargetList) Each

func (list TrafficTargetList) Each(f func(element *TrafficTarget))

func (TrafficTargetList) EachResource

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

func (TrafficTargetList) Find

func (list TrafficTargetList) Find(namespace, name string) (*TrafficTarget, error)

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

func (TrafficTargetList) Names

func (list TrafficTargetList) Names() []string

func (TrafficTargetList) NamespacesDotNames

func (list TrafficTargetList) NamespacesDotNames() []string

func (TrafficTargetList) Sort

type TrafficTargetReconciler

type TrafficTargetReconciler interface {
	Reconcile(namespace string, desiredResources TrafficTargetList, transition TransitionTrafficTargetFunc, opts clients.ListOpts) error
}

func NewTrafficTargetReconciler

func NewTrafficTargetReconciler(client TrafficTargetClient) TrafficTargetReconciler

type TrafficTargetWatcher

type TrafficTargetWatcher interface {
	// watch namespace-scoped traffictargets
	Watch(namespace string, opts clients.WatchOpts) (<-chan TrafficTargetList, <-chan error, error)
}

type TransitionTrafficTargetFunc

type TransitionTrafficTargetFunc func(original, desired *TrafficTarget) (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