cloud

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//go:embed parameter-samples/container-registry-create.json
	CloudContainerRegistryCreateSample string

	// CloudContainerRegistryName is used to edit the container registry
	CloudContainerRegistryName string

	CloudContainerRegistrySpec struct {
		Name   string `json:"name,omitempty"`
		PlanID string `json:"planID,omitempty"`
		Region string `json:"region,omitempty"`
	}
)
View Source
var (

	//go:embed parameter-samples/database-create.json
	DatabaseCreationExample string

	DatabaseSpec struct {
		Backups struct {
			Regions []string `json:"regions,omitempty"`
			Time    string   `json:"time,omitempty"`
		} `json:"backups,omitzero"`
		DeletionProtection bool   `json:"deletionProtection,omitempty"`
		Description        string `json:"description,omitempty"`
		Disk               struct {
			Size int `json:"size,omitempty"`
		} `json:"disk,omitzero"`
		EnablePrometheus bool `json:"enablePrometheus,omitempty"`
		ForkFrom         struct {
			BackupID    string `json:"backupId,omitempty"`
			PointInTime string `json:"pointInTime,omitempty"`
			ServiceID   string `json:"serviceId,omitempty"`
		} `json:"forkFrom,omitzero"`
		IPRestrictions  []databaseIPRestriction `json:"ipRestrictions,omitempty"`
		MaintenanceTime string                  `json:"maintenanceTime,omitempty"`
		NetworkID       string                  `json:"networkId,omitempty"`
		NodesList       []databaseNode          `json:"nodesList,omitempty"`
		NodesPattern    struct {
			Flavor string `json:"flavor,omitempty"`
			Number int    `json:"number,omitempty"`
			Region string `json:"region,omitempty"`
		} `json:"nodesPattern,omitzero"`
		Plan     string `json:"plan,omitempty"`
		SubnetID string `json:"subnetId,omitempty"`
		Version  string `json:"version,omitempty"`

		// Extra fields for CLI only
		Engine            string   `json:"-"`
		CLIIPRestrictions []string `json:"-"`
		CLINodesList      []string `json:"-"`
	}

	DatabaseDatabaseSpec struct {
		Name string `json:"name"`
	}
)
View Source
var (

	//go:embed parameter-samples/instance-create.json
	CloudInstanceCreationExample string

	// InstanceRebootType defines the type of reboot to perform on an instance.
	// It is set with a CLI flag.
	InstanceRebootType string

	// InstanceImageViaInteractiveSelector indicates whether to use an interactive image selector for installation.
	// It is set with a CLI flag.
	InstanceImageViaInteractiveSelector bool

	// InstanceFlavorViaInteractiveSelector indicates whether to use an interactive flavor selector for setting the instance flavor.
	// It is set with a CLI flag.
	InstanceFlavorViaInteractiveSelector bool

	// InstanceImage is the image to use for reinstallation or rescue mode.
	// It is set with a CLI flag.
	InstanceImageID string

	// InstanceCreationParameters holds the parameters for creating a new instance.
	InstanceCreationParameters = struct {
		Autobackup struct {
			Cron     string `json:"cron,omitempty"`
			Rotation int    `json:"rotation,omitempty"`
		} `json:"autobackup,omitzero"`
		AvailabilityZone string `json:"availabilityZone,omitempty"`
		BillingPeriod    string `json:"billingPeriod,omitempty"`
		BootFrom         struct {
			ImageID  string `json:"imageId,omitempty"`
			VolumeID string `json:"volumeId,omitempty"`
		} `json:"bootFrom,omitzero"`
		Bulk   int `json:"bulk,omitempty"`
		Flavor struct {
			ID string `json:"id,omitempty"`
		} `json:"flavor,omitzero"`
		Group struct {
			ID string `json:"id,omitempty"`
		} `json:"group,omitzero"`
		Name    string `json:"name,omitempty"`
		Network struct {
			Private struct {
				FloatingIp struct {
					ID string `json:"id,omitempty"`
				} `json:"floatingIp,omitzero"`
				FloatingIpCreate struct {
					Description string `json:"description,omitempty"`
				} `json:"floatingIpCreate,omitzero"`
				Gateway struct {
					ID string `json:"id,omitempty"`
				} `json:"gateway,omitzero"`
				GatewayCreate struct {
					Model string `json:"model,omitempty"`
					Name  string `json:"name,omitempty"`
				} `json:"gatewayCreate,omitzero"`
				IP      string `json:"ip,omitempty"`
				Network struct {
					ID       string `json:"id,omitempty"`
					SubnetID string `json:"subnetId,omitempty"`
				} `json:"network,omitzero"`
				NetworkCreate struct {
					Name   string `json:"name,omitempty"`
					Subnet struct {
						CIDR       string `json:"cidr,omitempty"`
						EnableDhcp bool   `json:"enableDhcp,omitempty"`
						IPVersion  int    `json:"ipVersion,omitempty"`
					} `json:"subnet,omitzero"`
					VlanID int `json:"vlanId,omitempty"`
				} `json:"networkCreate,omitzero"`
			} `json:"private,omitzero"`
			Public bool `json:"public,omitempty"`
		} `json:"network,omitzero"`
		SshKey struct {
			Name string `json:"name,omitempty"`
		} `json:"sshKey,omitzero"`
		SshKeyCreate struct {
			Name      string `json:"name,omitempty"`
			PublicKey string `json:"publicKey,omitempty"`
		} `json:"sshKeyCreate,omitzero"`
		UserData string `json:"userData,omitempty"`
	}{}

	InstanceSnapshotSpec struct {
		SnapshotName        string `json:"snapshotName,omitempty"`
		DistantSnapshotName string `json:"distantSnapshotName,omitempty"`
		DistantRegionName   string `json:"distantRegionName,omitempty"`
	}
)
View Source
var (

	//go:embed parameter-samples/kube-create.json
	CloudKubeCreationExample string

	//go:embed parameter-samples/kube-reset.json
	CloudKubeResetExample string

	//go:embed parameter-samples/kube-nodepool-create.json
	CloudKubeNodePoolCreationExample string

	//go:embed parameter-samples/kube-oidc-create.json
	CloudKubeOIDCCreationExample string

	// KubeSpec defines the structure for a Kubernetes cluster specification
	KubeSpec struct {
		Customization struct {
			APIServer struct {
				AdmissionPlugins struct {
					Disabled []string `json:"disabled,omitempty"`
					Enabled  []string `json:"enabled,omitempty"`
				} `json:"admissionPlugins,omitzero"`
			} `json:"apiServer,omitzero"`
			KubeProxy struct {
				IPTables struct {
					MinSyncPeriod string `json:"minSyncPeriod,omitempty"`
					SyncPeriod    string `json:"syncPeriod,omitempty"`
				} `json:"iptables,omitzero"`
				IPVS struct {
					MinSyncPeriod string `json:"minSyncPeriod,omitempty"`
					Scheduler     string `json:"scheduler,omitempty"`
					SyncPeriod    string `json:"syncPeriod,omitempty"`
					TCPFinTimeout string `json:"tcpFinTimeout,omitempty"`
					TCPTimeout    string `json:"tcpTimeout,omitempty"`
					UDPTimeout    string `json:"udpTimeout,omitempty"`
				} `json:"ipvs,omitzero"`
			} `json:"kubeProxy,omitzero"`
		} `json:"customization,omitzero"`
		KubeProxyMode               string `json:"kubeProxyMode,omitempty"`
		LoadBalancersSubnetId       string `json:"loadBalancersSubnetId,omitempty"`
		Name                        string `json:"name,omitempty"`
		NodesSubnetId               string `json:"nodesSubnetId,omitempty"`
		PrivateNetworkConfiguration struct {
			DefaultVrackGateway            string `json:"defaultVrackGateway,omitempty"`
			PrivateNetworkRoutingAsDefault bool   `json:"privateNetworkRoutingAsDefault,omitempty"`
		} `json:"privateNetworkConfiguration,omitzero"`
		PrivateNetworkId  string `json:"privateNetworkId,omitempty"`
		Region            string `json:"region,omitempty"`
		UpdatePolicy      string `json:"updatePolicy,omitempty"`
		Version           string `json:"version,omitempty"`
		WorkerNodesPolicy string `json:"workerNodesPolicy,omitempty"`
		Plan              string `json:"plan,omitempty"`
	}

	// KubeNodepoolSpec defines the structure for a Kubernetes node pool specification
	KubeNodepoolSpec kubeNodepoolSpec

	// KubeOIDCConfig defines the structure for OpenID Connect configuration in Kubernetes
	KubeOIDCConfig struct {
		CaContent         string   `json:"caContent,omitempty"`
		ClientId          string   `json:"clientId,omitempty"`
		GroupsClaim       []string `json:"groupsClaim,omitempty"`
		GroupsPrefix      string   `json:"groupsPrefix,omitempty"`
		IssuerUrl         string   `json:"issuerUrl,omitempty"`
		RequiredClaim     []string `json:"requiredClaim,omitempty"`
		SigningAlgorithms []string `json:"signingAlgorithms,omitempty"`
		UsernameClaim     string   `json:"usernameClaim,omitempty"`
		UsernamePrefix    string   `json:"usernamePrefix,omitempty"`
	}

	// KubeForceAction indicates whether to force an action
	// It is set by a command line flag
	KubeForceAction bool

	// KubeUpdateStrategy defines the strategy for updating Kubernetes clusters
	// It is set by a command line flag
	KubeUpdateStrategy string

	// KubeIPRestrictions defines the IP restrictions for Kubernetes clusters
	// It is set by a command line flag
	KubeIPRestrictions []string
)
View Source
var (

	// CloudNetworkName is used to store the name of the cloud network
	CloudNetworkName string

	//go:embed parameter-samples/private-network-create.json
	PrivateNetworkCreationExample string

	//go:embed parameter-samples/private-network-subnet-create.json
	PrivateNetworkSubnetCreationExample string

	//go:embed parameter-samples/gateway-create.json
	GatewayCreationExample string

	// CloudGatewaySpec contains the parameters for updating a cloud gateway
	CloudGatewaySpec struct {
		Model             string `json:"model,omitempty"`
		Name              string `json:"name,omitempty"`
		ExistingNetworkID string `json:"-"`
		ExistingSubnetID  string `json:"-"`
		Network           struct {
			Name   string `json:"name,omitempty"`
			VlanId int    `json:"vlanId,omitempty"`
			Subnet struct {
				Name                        string                         `json:"name,omitempty"`
				Cidr                        string                         `json:"cidr,omitempty"`
				EnableDhcp                  bool                           `json:"enableDhcp,omitempty"`
				GatewayIp                   string                         `json:"gatewayIp,omitempty"`
				DnsNameServers              []string                       `json:"dnsNameServers,omitempty"`
				UseDefaultPublicDNSResolver bool                           `json:"useDefaultPublicDNSResolver,omitempty"`
				IPVersion                   int                            `json:"ipVersion,omitempty"`
				AllocationPools             []PrivateNetworkAllocationPool `json:"allocationPools,omitempty"`
				HostRoutes                  []PrivateNetworkHostRoute      `json:"hostRoutes,omitempty"`

				CliAllocationPools []string `json:"-"`
				CliHostRoutes      []string `json:"-"`
			} `json:"subnet,omitzero"`
		} `json:"network,omitzero"`
	}

	CloudNetworkSpec struct {
		Name    string `json:"name,omitempty"`
		VlanId  int    `json:"vlanId,omitempty"`
		Gateway struct {
			Model string `json:"model,omitempty"`
			Name  string `json:"name,omitempty"`
		} `json:"gateway,omitzero"`
		Subnet struct {
			Name                        string                         `json:"name,omitempty"`
			Cidr                        string                         `json:"cidr,omitempty"`
			EnableDhcp                  bool                           `json:"enableDhcp"`
			EnableGatewayIp             bool                           `json:"enableGatewayIp"`
			GatewayIp                   string                         `json:"gatewayIp,omitempty"`
			DnsNameServers              []string                       `json:"dnsNameServers,omitempty"`
			UseDefaultPublicDNSResolver bool                           `json:"useDefaultPublicDNSResolver,omitempty"`
			IPVersion                   int                            `json:"ipVersion,omitempty"`
			AllocationPools             []PrivateNetworkAllocationPool `json:"allocationPools,omitempty"`
			HostRoutes                  []PrivateNetworkHostRoute      `json:"hostRoutes,omitempty"`

			CliAllocationPools []string `json:"-"`
			CliHostRoutes      []string `json:"-"`
		} `json:"subnet,omitzero"`
	}

	CloudNetworkSubnetEditSpec struct {
		Dhcp           bool   `json:"dhcp"`
		DisableGateway bool   `json:"disableGateway"`
		GatewayIp      string `json:"gatewayIp,omitempty"`
	}

	CloudNetworkSubnetSpec struct {
		DHCP      bool   `json:"dhcp"`
		NoGateway bool   `json:"noGateway"`
		Network   string `json:"network"`
		Start     string `json:"start"`
		End       string `json:"end"`
		Region    string `json:"region"`
	}

	GatewayInterfaceSpec struct {
		SubnetID string `json:"subnetId,omitempty"`
	}
)
View Source
var (

	// Cloud project set by CLI flags
	CloudProject string

	CloudProjectSpec struct {
		Description string `json:"description,omitempty"`
		ManualQuota bool   `json:"manualQuota"`
	}
)
View Source
var (

	//go:embed parameter-samples/rancher-create.json
	CloudRancherCreationExample string

	RancherSpec struct {
		TargetSpec struct {
			IAMAuthEnabled *bool  `json:"iamAuthEnabled,omitempty"`
			Name           string `json:"name,omitempty"`
			Plan           string `json:"plan,omitempty"`
			Version        string `json:"version,omitempty"`
		} `json:"targetSpec"`
	}
)
View Source
var (

	//go:embed parameter-samples/volume-create.json
	VolumeCreateExample string

	VolumeSpec struct {
		AvailabilityZone string `json:"availabilityZone,omitempty"`
		BackupId         string `json:"backupId,omitempty"`
		Description      string `json:"description,omitempty"`
		ImageId          string `json:"imageId,omitempty"`
		InstanceId       string `json:"instanceId,omitempty"`
		Name             string `json:"name,omitempty"`
		Size             int    `json:"size,omitempty"`
		SnapshotId       string `json:"snapshotId,omitempty"`
		Type             string `json:"type,omitempty"`
	}

	VolumeSnapShotSpec struct {
		Description string `json:"description,omitempty"`
		Name        string `json:"name,omitempty"`
	}
)
View Source
var (

	//go:embed parameter-samples/storage-s3-create.json
	CloudStorageS3CreationExample string

	//go:embed parameter-samples/storage-s3-presigned-url.json
	CloudStorageS3PresignedURLExample string

	StorageS3Spec struct {
		Name       string `json:"name,omitempty"`
		OwnerId    int    `json:"ownerId,omitempty"`
		Encryption struct {
			SSEAlgorithm string `json:"sseAlgorithm,omitempty"`
		} `json:"encryption,omitzero"`
		ObjectLock struct {
			Rule struct {
				Mode   string `json:"mode,omitempty"`
				Period string `json:"period,omitempty"`
			} `json:"rule,omitzero"`
			Status string `json:"status,omitempty"`
		} `json:"objectLock,omitzero"`
		Replication struct {
			Rules []struct {
				DeleteMarkerReplication string `json:"deleteMarkerReplication,omitempty"`
				Destination             struct {
					Name         string `json:"name,omitempty"`
					Region       string `json:"region,omitempty"`
					StorageClass string `json:"storageClass,omitempty"`
				} `json:"destination,omitzero"`
				Filter struct {
					Prefix string            `json:"prefix,omitempty"`
					Tags   map[string]string `json:"tags,omitempty"`
				} `json:"filter,omitzero"`
				ID       string `json:"id,omitempty"`
				Priority int    `json:"priority,omitempty"`
				Status   string `json:"status,omitempty"`
			} `json:"rules,omitempty"`
		} `json:"replication,omitzero"`
		Tags       map[string]string `json:"tags,omitempty"`
		Versioning struct {
			Status string `json:"status,omitempty"`
		} `json:"versioning,omitzero"`
	}

	StorageS3ObjectsToDelete  []string
	StorageS3BulkDeleteAll    bool
	StorageS3BulkDeletePrefix string

	StorageS3ListParams struct {
		KeyMarker       string
		Limit           int
		Prefix          string
		VersionIdMarker string
		WithVersions    bool
	}

	StorageS3ObjectSpec struct {
		LegalHold string `json:"legalHold,omitempty"`
		Lock      struct {
			Mode        string `json:"mode,omitempty"`
			RetainUntil string `json:"retainUntil,omitempty"`
		} `json:"lock,omitzero"`
	}

	StorageS3PresignedURLParams struct {
		Expire       int    `json:"expire,omitempty"`
		Method       string `json:"method,omitempty"`
		Object       string `json:"object,omitempty"`
		StorageClass string `json:"storageClass,omitempty"`
		VersionId    string `json:"versionId,omitempty"`
	}
)
View Source
var (

	//go:embed parameter-samples/user-create.json
	UserCreateExample string

	//go:embed parameter-samples/storage-s3-policy.json
	CloudStorageS3ContainerPolicyExample string

	UserSpec struct {
		Description string   `json:"description,omitempty"`
		Roles       []string `json:"roles,omitempty"`
	}

	StorageS3ContainerPolicySpec struct {
		Policy string `json:"policy,omitempty"`
	}
)
View Source
var (
	CloudLoadbalancerUpdateSpec struct {
		Description string `json:"description,omitempty"`
		Name        string `json:"name,omitempty"`
		FlavorId    string `json:"flavorId,omitempty"`
	}
)
View Source
var (

	// CloudSwiftContainerType is the type of the SWIFT storage container
	CloudSwiftContainerType string
)

Functions

func AbortInstanceSnapshot

func AbortInstanceSnapshot(_ *cobra.Command, args []string)

func ActivateMonthlyBilling

func ActivateMonthlyBilling(_ *cobra.Command, args []string)

func AddPrivateNetworkRegion

func AddPrivateNetworkRegion(_ *cobra.Command, args []string)

func AttachVolumeToInstance

func AttachVolumeToInstance(_ *cobra.Command, args []string)

func CreateCloudUser

func CreateCloudUser(cmd *cobra.Command, args []string)

func CreateContainerRegistry

func CreateContainerRegistry(cmd *cobra.Command, args []string)

func CreateDatabase added in v0.3.0

func CreateDatabase(cmd *cobra.Command, args []string)

func CreateDatabaseInDatabase added in v0.4.0

func CreateDatabaseInDatabase(_ *cobra.Command, args []string)

func CreateGateway

func CreateGateway(cmd *cobra.Command, args []string)

func CreateGatewayInterface

func CreateGatewayInterface(_ *cobra.Command, args []string)

func CreateInstance

func CreateInstance(cmd *cobra.Command, args []string)

func CreateInstanceInterface

func CreateInstanceInterface(_ *cobra.Command, args []string)

func CreateInstanceSnapshot

func CreateInstanceSnapshot(_ *cobra.Command, args []string)

func CreateKube

func CreateKube(cmd *cobra.Command, args []string)

func CreateKubeNodepool

func CreateKubeNodepool(cmd *cobra.Command, args []string)

func CreateKubeOIDCIntegration

func CreateKubeOIDCIntegration(cmd *cobra.Command, args []string)

func CreatePrivateNetwork

func CreatePrivateNetwork(cmd *cobra.Command, args []string)

func CreatePrivateNetworkSubnet added in v0.6.0

func CreatePrivateNetworkSubnet(cmd *cobra.Command, args []string)

func CreateRancher added in v0.2.0

func CreateRancher(cmd *cobra.Command, args []string)

func CreateStorageS3

func CreateStorageS3(cmd *cobra.Command, args []string)

func CreateStorageS3Credentials

func CreateStorageS3Credentials(cmd *cobra.Command, args []string)

func CreateUserS3Policy

func CreateUserS3Policy(cmd *cobra.Command, args []string)

func CreateVolume

func CreateVolume(cmd *cobra.Command, args []string)

func CreateVolumeBackup

func CreateVolumeBackup(cmd *cobra.Command, args []string)

func CreateVolumeFromBackup

func CreateVolumeFromBackup(cmd *cobra.Command, args []string)

func CreateVolumeSnapshot

func CreateVolumeSnapshot(_ *cobra.Command, args []string)

func DeleteCloudUser

func DeleteCloudUser(_ *cobra.Command, args []string)

func DeleteContainerRegistry

func DeleteContainerRegistry(_ *cobra.Command, args []string)

func DeleteDatabase added in v0.3.0

func DeleteDatabase(cmd *cobra.Command, args []string)

func DeleteDatabaseInDatabase added in v0.4.0

func DeleteDatabaseInDatabase(_ *cobra.Command, args []string)

func DeleteGateway

func DeleteGateway(_ *cobra.Command, args []string)

func DeleteGatewayInterface

func DeleteGatewayInterface(_ *cobra.Command, args []string)

func DeleteInstance

func DeleteInstance(_ *cobra.Command, args []string)

func DeleteInstanceInterface

func DeleteInstanceInterface(_ *cobra.Command, args []string)

func DeleteInstanceSnapshot added in v0.7.0

func DeleteInstanceSnapshot(_ *cobra.Command, args []string)

func DeleteKube

func DeleteKube(_ *cobra.Command, args []string)

func DeleteKubeNode

func DeleteKubeNode(_ *cobra.Command, args []string)

func DeleteKubeNodepool

func DeleteKubeNodepool(_ *cobra.Command, args []string)

func DeleteKubeOIDCIntegration

func DeleteKubeOIDCIntegration(_ *cobra.Command, args []string)

func DeletePrivateNetwork

func DeletePrivateNetwork(_ *cobra.Command, args []string)

func DeletePrivateNetworkRegion

func DeletePrivateNetworkRegion(_ *cobra.Command, args []string)

func DeletePrivateNetworkSubnet

func DeletePrivateNetworkSubnet(_ *cobra.Command, args []string)

func DeleteRancher added in v0.2.0

func DeleteRancher(_ *cobra.Command, args []string)

func DeleteStorageS3

func DeleteStorageS3(_ *cobra.Command, args []string)

func DeleteStorageS3Credentials

func DeleteStorageS3Credentials(_ *cobra.Command, args []string)

func DeleteStorageS3Object

func DeleteStorageS3Object(_ *cobra.Command, args []string)

func DeleteStorageS3ObjectVersion

func DeleteStorageS3ObjectVersion(_ *cobra.Command, args []string)

func DeleteVolume

func DeleteVolume(_ *cobra.Command, args []string)

func DeleteVolumeBackup

func DeleteVolumeBackup(_ *cobra.Command, args []string)

func DeleteVolumeSnapshot

func DeleteVolumeSnapshot(_ *cobra.Command, args []string)

func DetachVolumeFromInstance

func DetachVolumeFromInstance(_ *cobra.Command, args []string)

func DisableInstanceRescueMode

func DisableInstanceRescueMode(_ *cobra.Command, args []string)

func EditCloudLoadbalancer

func EditCloudLoadbalancer(cmd *cobra.Command, args []string)

func EditCloudProject

func EditCloudProject(cmd *cobra.Command, args []string)

func EditContainerRegistry

func EditContainerRegistry(cmd *cobra.Command, args []string)

func EditDatabase added in v0.4.0

func EditDatabase(cmd *cobra.Command, args []string)

func EditGateway

func EditGateway(cmd *cobra.Command, args []string)

func EditKube

func EditKube(cmd *cobra.Command, args []string)

func EditKubeCustomization

func EditKubeCustomization(cmd *cobra.Command, args []string)

func EditKubeIPRestrictions

func EditKubeIPRestrictions(cmd *cobra.Command, args []string)

func EditKubeNodepool

func EditKubeNodepool(cmd *cobra.Command, args []string)

func EditKubeOIDCIntegration

func EditKubeOIDCIntegration(cmd *cobra.Command, args []string)

func EditKubePrivateNetworkConfiguration

func EditKubePrivateNetworkConfiguration(cmd *cobra.Command, args []string)

func EditPrivateNetwork

func EditPrivateNetwork(cmd *cobra.Command, args []string)

func EditPrivateNetworkSubnet

func EditPrivateNetworkSubnet(cmd *cobra.Command, args []string)

func EditRancher

func EditRancher(cmd *cobra.Command, args []string)

func EditStorageS3

func EditStorageS3(cmd *cobra.Command, args []string)

func EditStorageS3Object

func EditStorageS3Object(cmd *cobra.Command, args []string)

func EditStorageS3ObjectVersion

func EditStorageS3ObjectVersion(cmd *cobra.Command, args []string)

func EditStorageSwift

func EditStorageSwift(cmd *cobra.Command, args []string)

func EditVolume

func EditVolume(cmd *cobra.Command, args []string)

func EnableInstanceInRescueMode

func EnableInstanceInRescueMode(_ *cobra.Command, args []string)

func ExposeGateway

func ExposeGateway(_ *cobra.Command, args []string)

func GenerateKubeConfig

func GenerateKubeConfig(cmd *cobra.Command, args []string)

func GetCloudDatabase

func GetCloudDatabase(_ *cobra.Command, args []string)

func GetCloudLoadbalancer

func GetCloudLoadbalancer(_ *cobra.Command, args []string)

func GetCloudOperation

func GetCloudOperation(_ *cobra.Command, args []string)

func GetCloudProject

func GetCloudProject(_ *cobra.Command, args []string)

func GetCloudQuota

func GetCloudQuota(_ *cobra.Command, args []string)

func GetCloudRegion

func GetCloudRegion(_ *cobra.Command, args []string)

func GetCloudSSHKey

func GetCloudSSHKey(_ *cobra.Command, args []string)

func GetCloudUser

func GetCloudUser(_ *cobra.Command, args []string)

func GetContainerRegistry

func GetContainerRegistry(_ *cobra.Command, args []string)

func GetDatabaseInDatabase added in v0.4.0

func GetDatabaseInDatabase(_ *cobra.Command, args []string)

func GetFlavors

func GetFlavors(region string)

func GetGateway

func GetGateway(_ *cobra.Command, args []string)

func GetGatewayInterface

func GetGatewayInterface(_ *cobra.Command, args []string)

func GetImages

func GetImages(region, osType string)

func GetInstance

func GetInstance(_ *cobra.Command, args []string)

func GetInstanceFlavorAndImageInteractiveSelector

func GetInstanceFlavorAndImageInteractiveSelector(cmd *cobra.Command, args []string) (map[string]any, error)

func GetInstanceInterface

func GetInstanceInterface(_ *cobra.Command, args []string)

func GetInstanceSnapshot added in v0.7.0

func GetInstanceSnapshot(_ *cobra.Command, args []string)

func GetKube

func GetKube(_ *cobra.Command, args []string)

func GetKubeCustomization

func GetKubeCustomization(cmd *cobra.Command, args []string)

func GetKubeFlavorInteractiveSelector

func GetKubeFlavorInteractiveSelector(cmd *cobra.Command, args []string) (map[string]any, error)

func GetKubeNode

func GetKubeNode(_ *cobra.Command, args []string)

func GetKubeNodepool

func GetKubeNodepool(_ *cobra.Command, args []string)

func GetKubeOIDCIntegration

func GetKubeOIDCIntegration(_ *cobra.Command, args []string)

func GetKubePrivateNetworkConfiguration

func GetKubePrivateNetworkConfiguration(_cmd *cobra.Command, args []string)

func GetPrivateNetwork

func GetPrivateNetwork(_ *cobra.Command, args []string)

func GetPrivateNetworkSubnet

func GetPrivateNetworkSubnet(_ *cobra.Command, args []string)

func GetPublicNetwork

func GetPublicNetwork(_ *cobra.Command, args []string)

func GetRancher

func GetRancher(_ *cobra.Command, args []string)

func GetStorageS3

func GetStorageS3(_ *cobra.Command, args []string)

func GetStorageS3Credentials

func GetStorageS3Credentials(_ *cobra.Command, args []string)

func GetStorageS3Object

func GetStorageS3Object(_ *cobra.Command, args []string)

func GetStorageS3ObjectVersion

func GetStorageS3ObjectVersion(_ *cobra.Command, args []string)

func GetStorageSwift

func GetStorageSwift(_ *cobra.Command, args []string)

func GetUserS3Policy

func GetUserS3Policy(_ *cobra.Command, args []string)

func GetVolume

func GetVolume(_ *cobra.Command, args []string)

func GetVolumeBackup

func GetVolumeBackup(_ *cobra.Command, args []string)

func ListCloudDatabases

func ListCloudDatabases(_ *cobra.Command, _ []string)

func ListCloudLoadbalancers

func ListCloudLoadbalancers(_ *cobra.Command, _ []string)

func ListCloudOperations

func ListCloudOperations(_ *cobra.Command, _ []string)

func ListCloudProject

func ListCloudProject(_ *cobra.Command, _ []string)

func ListCloudRanchers

func ListCloudRanchers(_ *cobra.Command, _ []string)

func ListCloudRegions

func ListCloudRegions(_ *cobra.Command, _ []string)

func ListCloudSSHKeys

func ListCloudSSHKeys(_ *cobra.Command, _ []string)

func ListCloudStorageS3

func ListCloudStorageS3(_ *cobra.Command, _ []string)

func ListCloudStorageSwift

func ListCloudStorageSwift(_ *cobra.Command, _ []string)

func ListCloudUsers

func ListCloudUsers(_ *cobra.Command, _ []string)

func ListCloudVolumes

func ListCloudVolumes(_ *cobra.Command, _ []string)

func ListContainerRegistries

func ListContainerRegistries(_ *cobra.Command, _ []string)

func ListContainerRegistryPlans

func ListContainerRegistryPlans(_ *cobra.Command, _ []string)

func ListDatabaseEngines added in v0.3.0

func ListDatabaseEngines(_ *cobra.Command, _ []string)

func ListDatabasesInDatabase added in v0.4.0

func ListDatabasesInDatabase(_ *cobra.Command, args []string)

func ListDatabasesNodeFlavors added in v0.3.0

func ListDatabasesNodeFlavors(_ *cobra.Command, _ []string)

func ListDatabasesPlans added in v0.3.0

func ListDatabasesPlans(_ *cobra.Command, _ []string)

func ListGatewayInterfaces

func ListGatewayInterfaces(_ *cobra.Command, args []string)

func ListGateways

func ListGateways(_ *cobra.Command, _ []string)

func ListInstanceInterfaces

func ListInstanceInterfaces(_ *cobra.Command, args []string)

func ListInstanceSnapshots added in v0.7.0

func ListInstanceSnapshots(_ *cobra.Command, _ []string)

func ListInstances

func ListInstances(_ *cobra.Command, _ []string)

func ListKubeIPRestrictions

func ListKubeIPRestrictions(_ *cobra.Command, args []string)

func ListKubeNodepools

func ListKubeNodepools(_ *cobra.Command, args []string)

func ListKubeNodes

func ListKubeNodes(_ *cobra.Command, args []string)

func ListKubes

func ListKubes(_ *cobra.Command, _ []string)

func ListLoadbalancerFlavors added in v0.7.0

func ListLoadbalancerFlavors(cmd *cobra.Command, args []string)

func ListPrivateNetworkSubnets

func ListPrivateNetworkSubnets(_ *cobra.Command, args []string)

func ListPrivateNetworks

func ListPrivateNetworks(_ *cobra.Command, _ []string)

func ListPublicNetworks

func ListPublicNetworks(_ *cobra.Command, _ []string)

func ListRancherAvailablePlans added in v0.2.0

func ListRancherAvailablePlans(cmd *cobra.Command, _ []string)

func ListRancherAvailableVersions added in v0.2.0

func ListRancherAvailableVersions(cmd *cobra.Command, _ []string)

func ListStorageS3Credentials

func ListStorageS3Credentials(_ *cobra.Command, args []string)

func ListStorageS3ObjectVersions

func ListStorageS3ObjectVersions(_ *cobra.Command, args []string)

func ListStorageS3Objects

func ListStorageS3Objects(_ *cobra.Command, args []string)

func ListVolumeBackups

func ListVolumeBackups(_ *cobra.Command, args []string)

func ListVolumeSnapshots

func ListVolumeSnapshots(cmd *cobra.Command, args []string)

func RebootInstance

func RebootInstance(_ *cobra.Command, args []string)

func ReinstallInstance

func ReinstallInstance(cmd *cobra.Command, args []string)

func ResetKubeCluster

func ResetKubeCluster(cmd *cobra.Command, args []string)

func ResetKubeConfig

func ResetKubeConfig(cmd *cobra.Command, args []string)

func ResetRancherAdminCredentials added in v0.7.0

func ResetRancherAdminCredentials(_ *cobra.Command, args []string)

func RestartKubeCluster

func RestartKubeCluster(_ *cobra.Command, args []string)

func RestoreVolumeBackup

func RestoreVolumeBackup(_ *cobra.Command, args []string)

func ResumeInstance

func ResumeInstance(_ *cobra.Command, args []string)

func SetInstanceFlavor

func SetInstanceFlavor(_ *cobra.Command, args []string)

func SetInstanceName

func SetInstanceName(_ *cobra.Command, args []string)

func ShelveInstance

func ShelveInstance(_ *cobra.Command, args []string)

func StartInstance

func StartInstance(_ *cobra.Command, args []string)

func StopInstance

func StopInstance(_ *cobra.Command, args []string)

func StorageS3AddUser

func StorageS3AddUser(cmd *cobra.Command, args []string)

func StorageS3BulkDeleteObjects

func StorageS3BulkDeleteObjects(_ *cobra.Command, args []string)

func StorageS3GeneratePresignedURL

func StorageS3GeneratePresignedURL(cmd *cobra.Command, args []string)

func UnshelveInstance

func UnshelveInstance(_ *cobra.Command, args []string)

func UpdateKubeCluster

func UpdateKubeCluster(_ *cobra.Command, args []string)

func UpdateKubeLoadBalancersSubnet

func UpdateKubeLoadBalancersSubnet(_ *cobra.Command, args []string)

func UpsizeVolume

func UpsizeVolume(cmd *cobra.Command, args []string)

Types

type CloudProjectOperation

type CloudProjectOperation struct {
	Id            string                     `json:"id"`
	Action        string                     `json:"action"`
	CreateAt      string                     `json:"createdAt"`
	StartedAt     string                     `json:"startedAt"`
	CompletedAt   *string                    `json:"completedAt"`
	Progress      int                        `json:"progress"`
	Regions       []string                   `json:"regions"`
	ResourceId    *string                    `json:"resourceId"`
	Status        string                     `json:"status"`
	SubOperations []CloudProjectSubOperation `json:"subOperations"`
}

type CloudProjectSubOperation

type CloudProjectSubOperation struct {
	ResourceId *string `json:"resourceId"`
	Action     string  `json:"action"`
}

type NetworkRegionDetails added in v0.5.0

type NetworkRegionDetails struct {
	OpenstackID string `json:"openstackId"`
	Region      string `json:"region"`
}

type PrivateNetwork added in v0.5.0

type PrivateNetwork struct {
	ID      string                 `json:"id"`
	Regions []NetworkRegionDetails `json:"regions"`
}

type PrivateNetworkAllocationPool

type PrivateNetworkAllocationPool struct {
	Start string `json:"start,omitempty"`
	End   string `json:"end,omitempty"`
}

type PrivateNetworkHostRoute

type PrivateNetworkHostRoute struct {
	Destination string `json:"destination,omitempty"`
	NextHop     string `json:"nextHop,omitempty"`
}

Jump to

Keyboard shortcuts

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