Documentation ¶
Index ¶
- func CheckShootAuthorizationByTags(logger logr.Logger, objectType, name, shootNamespace, gardenID string, ...) error
- func IdFromPath(path string) string
- func LookupIPPoolIDByName(ctx EnsurerContext, name string) (string, string, error)
- func RandomString(length int) string
- func RandomStringWithCharset(length int, charset string) string
- func TagsToMap(tags []model.Tag) map[string]string
- func TryRecover(ctx EnsurerContext, state *api.NSXTInfraState, rt RecoverableTask, ...) bool
- type EnsurerContext
- type RecoverableAdvancedTask
- type RecoverableTask
- type Task
- func NewAdvancedDHCPIPPoolTask() Task
- func NewAdvancedDHCPPortTask() Task
- func NewAdvancedDHCPProfileTask() Task
- func NewAdvancedDHCPServerTask() Task
- func NewAdvancedLookupLogicalSwitchTask() Task
- func NewDHCPServerConfigTask() Task
- func NewLookupEdgeClusterTask() Task
- func NewLookupSNATIPPoolTask() Task
- func NewLookupTier0GatewayTask() Task
- func NewLookupTransportZoneTask() Task
- func NewSNATIPAddressAllocationTask() Task
- func NewSNATIPAddressRealizationTask() Task
- func NewSNATRuleTask() Task
- func NewSegmentTask() Task
- func NewTier1GatewayLocaleServiceTask() Task
- func NewTier1GatewayTask() Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IdFromPath ¶
func LookupIPPoolIDByName ¶
func LookupIPPoolIDByName(ctx EnsurerContext, name string) (string, string, error)
func RandomString ¶
func RandomStringWithCharset ¶
func TryRecover ¶
func TryRecover(ctx EnsurerContext, state *api.NSXTInfraState, rt RecoverableTask, tags []model.Tag) bool
Types ¶
type EnsurerContext ¶
type EnsurerContext interface { Logger() logr.Logger // Connector for simplified API (NSXT policy) Connector() vapiclient.Connector // NSXTClient NSX Manager client - based on go-vmware-nsxt SDK (Advanced API) NSXTClient() *nsxt.APIClient // IsTryRecoverEnabled returns if NSX-T object should be searched by tag if no reference is set in state IsTryRecoverEnabled() bool // GetNSXTVersion retrieves the NSX-T version GetNSXTVersion() (*string, error) // ShootNamespace returns the shoot namespace used for authorization ShootNamespace() string // GardenID returns the garden identity used for authorization GardenID() string }
type RecoverableAdvancedTask ¶
type RecoverableAdvancedTask interface {
TryRecover(ctx EnsurerContext, state *api.NSXTInfraState, tags []common.Tag) bool
}
type RecoverableTask ¶
type RecoverableTask interface { ListAll(a EnsurerContext, state *api.NSXTInfraState, cursor *string) (interface{}, error) SetRecoveredReference(state *api.NSXTInfraState, ref *api.Reference, displayName *string) IsExternal(state *api.NSXTInfraState) bool }
type Task ¶
type Task interface { Label() string Ensure(ctx EnsurerContext, spec vinfra.NSXTInfraSpec, state *api.NSXTInfraState) (action string, err error) EnsureDeleted(ctx EnsurerContext, state *api.NSXTInfraState) (deleted bool, err error) NameToLog(spec vinfra.NSXTInfraSpec) *string Reference(state *api.NSXTInfraState) *api.Reference }
func NewAdvancedDHCPIPPoolTask ¶
func NewAdvancedDHCPIPPoolTask() Task
func NewAdvancedDHCPPortTask ¶
func NewAdvancedDHCPPortTask() Task
func NewAdvancedDHCPProfileTask ¶
func NewAdvancedDHCPProfileTask() Task
func NewAdvancedDHCPServerTask ¶
func NewAdvancedDHCPServerTask() Task
func NewAdvancedLookupLogicalSwitchTask ¶
func NewAdvancedLookupLogicalSwitchTask() Task
func NewDHCPServerConfigTask ¶
func NewDHCPServerConfigTask() Task
func NewLookupEdgeClusterTask ¶
func NewLookupEdgeClusterTask() Task
func NewLookupSNATIPPoolTask ¶
func NewLookupSNATIPPoolTask() Task
func NewLookupTier0GatewayTask ¶
func NewLookupTier0GatewayTask() Task
func NewLookupTransportZoneTask ¶
func NewLookupTransportZoneTask() Task
func NewSNATIPAddressAllocationTask ¶
func NewSNATIPAddressAllocationTask() Task
func NewSNATIPAddressRealizationTask ¶
func NewSNATIPAddressRealizationTask() Task
func NewSNATRuleTask ¶
func NewSNATRuleTask() Task
func NewSegmentTask ¶
func NewSegmentTask() Task
func NewTier1GatewayLocaleServiceTask ¶
func NewTier1GatewayLocaleServiceTask() Task
func NewTier1GatewayTask ¶
func NewTier1GatewayTask() Task
Click to show internal directories.
Click to hide internal directories.