task

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0, MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckShootAuthorizationByTags

func CheckShootAuthorizationByTags(logger logr.Logger, objectType, name, shootNamespace, gardenID string, tags map[string]string) error

func IdFromPath

func IdFromPath(path string) string

func LookupIPPoolIDByName

func LookupIPPoolIDByName(ctx EnsurerContext, name string) (string, string, error)

func RandomString

func RandomString(length int) string

func RandomStringWithCharset

func RandomStringWithCharset(length int, charset string) string

func TagsToMap

func TagsToMap(tags []model.Tag) map[string]string

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 cluster 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

Jump to

Keyboard shortcuts

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