Documentation ¶
Index ¶
- Constants
- Variables
- func ParseVPCPeeringPermits(vpc1, vpc2, in string) (map[string]vpcapi.VPCPeer, error)
- func ParseVPCPermits(in string) ([]string, error)
- func ParseVPCSubnet(in string) (string, *vpcapi.VPCSubnet, error)
- type AbbrHandler
- type AbbrParams
- type AbbrType
- type Enforcer
- type ObjectAbbrHandler
- func (h *ObjectAbbrHandler[T, TList]) Init() (*ObjectAbbrHandler[T, TList], error)
- func (h *ObjectAbbrHandler[T, TList]) Load(ct AbbrType, abbr string, params AbbrParams) (bool, error)
- func (h *ObjectAbbrHandler[T, TList]) PostProcess(ctx context.Context, kube client.Client) error
- func (h *ObjectAbbrHandler[T, TList]) PreProcess(ctx context.Context, kube client.Client) error
Constants ¶
View Source
const (
ExternalPeeringSeparator = "~"
)
View Source
const (
VPCAttachmentAbbrSeparator = "@"
)
View Source
const (
VPCPeeringAbbrSeparator = "+"
)
Variables ¶
View Source
var ( FallbackParamDisable = []string{"disable"} FallbackParams = [][]string{ FallbackParamDisable, } )
View Source
var ( TrueVals = []string{"true", "t", "yes", "y", "1"} TrueValsDefault = append(TrueVals, "") )
View Source
var ( ExtPeeringParamSubnets = []string{"subnets", "s"} ExtPeeringParamPrefixes = []string{"prefixes", "p"} ExtPeeringParams = [][]string{ ExtPeeringParamSubnets, ExtPeeringParamPrefixes, } )
View Source
var ( VPCParamDefaultIsolated = []string{"defaultIsolated", "defI", "i"} VPCParamDefaultRestricted = []string{"defaultRestricted", "defR", "r"} VPCParamIPNS = []string{"ipns"} VPCParamVLANNS = []string{"vlanns"} VPCParamSubnets = []string{"subnet", "s"} VPCParamPermits = []string{"permit", "p"} VPCParams = [][]string{ VPCParamDefaultIsolated, VPCParamDefaultRestricted, VPCParamIPNS, VPCParamVLANNS, VPCParamSubnets, VPCParamPermits, } )
View Source
var ( VPCAttachmentParamNativeVLAN = []string{"native-vlan", "native", "nv"} VPCAttachmentParams = [][]string{ VPCAttachmentParamNativeVLAN, } )
View Source
var ( VPCPeeringParamRemote = []string{"remote", "r"} VPCPeeringParamPermit = []string{"permit", "p"} VPCPeeringParams = [][]string{ VPCPeeringParamRemote, VPCPeeringParamPermit, } )
View Source
var AbbrTypes = []AbbrType{ AbbrTypeVPC, AbbrTypeConnectionFallback, }
Functions ¶
func ParseVPCPeeringPermits ¶
func ParseVPCPermits ¶
Types ¶
type AbbrHandler ¶
type AbbrParams ¶
func (AbbrParams) GetStringSlice ¶
func (p AbbrParams) GetStringSlice(keys []string) []string
type Enforcer ¶
type Enforcer struct {
// contains filtered or unexported fields
}
func NewEnforcer ¶
type ObjectAbbrHandler ¶
type ObjectAbbrHandler[T meta.Object, TList meta.ObjectList] struct { AbbrType AbbrType AcceptedParams [][]string AcceptNoTypeFn func(abbr string) bool NameFn func(abbr string) (name string) ParseObjectFn func(name, abbr string, params AbbrParams) (T, error) ObjectListFn func(ctx context.Context, kube client.Client) (TList, error) CreateOrUpdateFn func(ctx context.Context, kube client.Client, obj T) (ctrlutil.OperationResult, error) PatchExistingFn func(obj T) bool DisallowOverride bool CleanupNotDefined bool // contains filtered or unexported fields }
func (*ObjectAbbrHandler[T, TList]) Init ¶
func (h *ObjectAbbrHandler[T, TList]) Init() (*ObjectAbbrHandler[T, TList], error)
func (*ObjectAbbrHandler[T, TList]) Load ¶
func (h *ObjectAbbrHandler[T, TList]) Load(ct AbbrType, abbr string, params AbbrParams) (bool, error)
func (*ObjectAbbrHandler[T, TList]) PostProcess ¶
func (*ObjectAbbrHandler[T, TList]) PreProcess ¶
Click to show internal directories.
Click to hide internal directories.