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 }
Click to show internal directories.
Click to hide internal directories.