Documentation ¶
Index ¶
- type CloneableTrafficTarget
- type TrafficTarget
- type TrafficTargetClient
- func NewTrafficTargetClient(rcFactory factory.ResourceClientFactory) (TrafficTargetClient, error)
- func NewTrafficTargetClientWithBase(rc clients.ResourceClient) TrafficTargetClient
- func NewTrafficTargetClientWithToken(rcFactory factory.ResourceClientFactory, token string) (TrafficTargetClient, error)
- type TrafficTargetList
- func (list TrafficTargetList) AsInterfaces() []interface{}
- func (list TrafficTargetList) AsResources() resources.ResourceList
- func (list TrafficTargetList) Clone() TrafficTargetList
- func (list TrafficTargetList) Each(f func(element *TrafficTarget))
- func (list TrafficTargetList) EachResource(f func(element resources.Resource))
- func (list TrafficTargetList) Find(namespace, name string) (*TrafficTarget, error)
- func (list TrafficTargetList) Names() []string
- func (list TrafficTargetList) NamespacesDotNames() []string
- func (list TrafficTargetList) Sort() TrafficTargetList
- type TrafficTargetReconciler
- type TrafficTargetWatcher
- type TransitionTrafficTargetFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloneableTrafficTarget ¶
type CloneableTrafficTarget interface { resources.Resource Clone() *github_com_solo_io_supergloo_api_external_smi_access.TrafficTarget }
type TrafficTarget ¶
type TrafficTarget struct {
github_com_solo_io_supergloo_api_external_smi_access.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 ¶
func (list TrafficTargetList) Sort() TrafficTargetList
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 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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.