gloo

package
v0.0.0-e4d2405 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRouteTablePatch

func BuildRouteTablePatch(current, desired *networkv2.RouteTable, opts ...PatchOption) ([]byte, bool, error)

Types

type NetworkV2ClientSet

type NetworkV2ClientSet interface {
	RouteTables() RouteTableClient
}

func NewNetworkV2ClientSet

func NewNetworkV2ClientSet() (NetworkV2ClientSet, error)

type PatchOption

type PatchOption func(p *patchConfig)

func WithAnnotations

func WithAnnotations() PatchOption

func WithLabels

func WithLabels() PatchOption

func WithSpec

func WithSpec() PatchOption

type RouteTableClient

type RouteTableClient interface {
	RouteTableReader
	RouteTableWriter
}

type RouteTableReader

type RouteTableReader interface {
	// Get retrieves a RouteTable for the given object key
	GetRouteTable(ctx context.Context, name string, namespace string) (*networkv2.RouteTable, error)

	// List retrieves list of RouteTables for a given namespace and list options.
	ListRouteTable(ctx context.Context, opts ...k8sclient.ListOption) ([]*networkv2.RouteTable, error)
}

type RouteTableWriter

type RouteTableWriter interface {
	// Patch patches the given RouteTable object.
	PatchRouteTable(ctx context.Context, obj *networkv2.RouteTable, patch k8sclient.Patch, opts ...k8sclient.PatchOption) error
}

Jump to

Keyboard shortcuts

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