dummies

package
v0.4.5-rc3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AffinityGroup      *cloud.AffinityGroup
	CSAffinityGroup    *capcv1.CloudStackAffinityGroup
	CSCluster          *capcv1.CloudStackCluster
	CAPIMachine        *capiv1.Machine
	CSMachine1         *capcv1.CloudStackMachine
	CAPICluster        *capiv1.Cluster
	CSMachineTemplate1 *capcv1.CloudStackMachineTemplate
	Zone1              capcv1.Zone
	Zone2              capcv1.Zone
	CSZone1            *capcv1.CloudStackZone
	CSZone2            *capcv1.CloudStackZone
	Net1               capcv1.Network
	Net2               capcv1.Network
	ISONet1            capcv1.Network
	CSISONet1          *capcv1.CloudStackIsolatedNetwork
	Domain             string
	DomainID           string
	RootDomain         string
	RootDomainID       string
	Level2Domain       string
	Level2DomainID     string
	Account            string
	Tags               map[string]string
	Tag1               map[string]string
	Tag2               map[string]string
	Tag1Key            string
	Tag1Val            string
	Tag2Key            string
	Tag2Val            string
	CSApiVersion       string
	CSClusterKind      string
	CSClusterName      string
	CSlusterNamespace  string
	TestTags           map[string]string
	CSClusterTagKey    string
	CSClusterTagVal    string
	CSClusterTag       map[string]string
	CreatedByCapcKey   string
	CreatedByCapcVal   string
	LBRuleID           string
	PublicIPID         string
	EndPointHost       string
	EndPointPort       int32
	ListDomainsParams  *csapi.ListDomainsParams
	ListDomainsResp    *csapi.ListDomainsResponse
	ListAccountsParams *csapi.ListAccountsParams
	ListAccountsResp   *csapi.ListAccountsResponse
	DiskOffering       = capcv1.CloudStackResourceDiskOffering{
		CloudStackResourceIdentifier: capcv1.CloudStackResourceIdentifier{
			Name: "Small",
		},
		MountPath:  "/data",
		Device:     "/dev/vdb",
		Filesystem: "ext4",
		Label:      "data_disk",
	}
)

Functions

func CAPCNetToCSAPINet

func CAPCNetToCSAPINet(net *capcv1.Network) *csapi.Network

func CAPCZoneToCSAPIZone

func CAPCZoneToCSAPIZone(net *capcv1.Zone) *csapi.Zone

func SetClusterSpecToNet

func SetClusterSpecToNet(net *capcv1.Network)

Sets cluster spec to specified network.

func SetDummyCAPCClusterVars

func SetDummyCAPCClusterVars()

SetDummyCAPCClusterVars resets the values in each of the exported CloudStackCluster related dummy variables. It is intended to be called in BeforeEach() functions.

func SetDummyCAPIClusterVars

func SetDummyCAPIClusterVars()

SetDummyCapiCluster resets the values in each of the exported CAPICluster related dummy variables.

func SetDummyCAPIMachineVars

func SetDummyCAPIMachineVars()

func SetDummyCSApiResponse

func SetDummyCSApiResponse()

func SetDummyCSMachineStatuses

func SetDummyCSMachineStatuses()

func SetDummyCSMachineTemplateVars

func SetDummyCSMachineTemplateVars()

SetDummyCSMachineTemplateVars resets the values in each of the exported CloudStackMachinesTemplate dummy variables.

func SetDummyCSMachineVars

func SetDummyCSMachineVars()

SetDummyCSMachineVars resets the values in each of the exported CloudStackMachine dummy variables.

func SetDummyClusterStatus

func SetDummyClusterStatus()

Fills in cluster status vars.

func SetDummyDomainAndAccount

func SetDummyDomainAndAccount()

SetDummyDomainAndAccount sets domain and account in the CSCluster Spec. This is not the default.

func SetDummyDomainID

func SetDummyDomainID()

SetDummyDomainAndAccount sets domainID in the CSCluster Status. This is not the default.

func SetDummyIsoNetToNameOnly

func SetDummyIsoNetToNameOnly()

func SetDummyTagVars

func SetDummyTagVars()

SetDummyVars sets/resets tag related dummy vars.

func SetDummyVars

func SetDummyVars()

SetDummyVars sets/resets all dummy vars.

func SetDummyZoneVars

func SetDummyZoneVars()

Types

This section is empty.

Jump to

Keyboard shortcuts

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