client

package
v0.0.1-0...-50e16f5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// KubeCloudConfigNamespace is the namespace where the kube cloud config ConfigMap is located
	KubeCloudConfigNamespace = "openshift-config-managed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaCloudClientBuilderFunc

type AlibabaCloudClientBuilderFunc func(client client.Client, secretName, namespace, region string, configManagedClient client.Client) (Client, error)

AlibabaCloudClientBuilderFunc is function type for building alibabacloud client

type Client

type Client interface {
	//Ecs
	RunInstances(*ecs.RunInstancesRequest) (*ecs.RunInstancesResponse, error)
	CreateInstance(*ecs.CreateInstanceRequest) (*ecs.CreateInstanceResponse, error)
	DescribeInstances(*ecs.DescribeInstancesRequest) (*ecs.DescribeInstancesResponse, error)
	DeleteInstances(*ecs.DeleteInstancesRequest) (*ecs.DeleteInstancesResponse, error)
	StartInstance(*ecs.StartInstanceRequest) (*ecs.StartInstanceResponse, error)
	RebootInstance(request *ecs.RebootInstanceRequest) (*ecs.RebootInstanceResponse, error)
	StopInstance(*ecs.StopInstanceRequest) (*ecs.StopInstanceResponse, error)
	StartInstances(*ecs.StartInstancesRequest) (*ecs.StartInstancesResponse, error)
	RebootInstances(request *ecs.RebootInstancesRequest) (*ecs.RebootInstancesResponse, error)
	StopInstances(*ecs.StopInstancesRequest) (*ecs.StopInstancesResponse, error)
	DeleteInstance(*ecs.DeleteInstanceRequest) (*ecs.DeleteInstanceResponse, error)
	AttachInstanceRAMRole(*ecs.AttachInstanceRamRoleRequest) (*ecs.AttachInstanceRamRoleResponse, error)
	DetachInstanceRAMRole(*ecs.DetachInstanceRamRoleRequest) (*ecs.DetachInstanceRamRoleResponse, error)
	DescribeInstanceStatus(*ecs.DescribeInstanceStatusRequest) (*ecs.DescribeInstanceStatusResponse, error)
	ReActivateInstances(*ecs.ReActivateInstancesRequest) (*ecs.ReActivateInstancesResponse, error)
	DescribeUserData(*ecs.DescribeUserDataRequest) (*ecs.DescribeUserDataResponse, error)
	DescribeInstanceTypes(*ecs.DescribeInstanceTypesRequest) (*ecs.DescribeInstanceTypesResponse, error)
	ModifyInstanceAttribute(*ecs.ModifyInstanceAttributeRequest) (*ecs.ModifyInstanceAttributeResponse, error)
	ModifyInstanceMetadataOptions(*ecs.ModifyInstanceMetadataOptionsRequest) (*ecs.ModifyInstanceMetadataOptionsResponse, error)

	TagResources(*ecs.TagResourcesRequest) (*ecs.TagResourcesResponse, error)
	ListTagResources(*ecs.ListTagResourcesRequest) (*ecs.ListTagResourcesResponse, error)
	UntagResources(*ecs.UntagResourcesRequest) (*ecs.UntagResourcesResponse, error)

	//Network
	AllocatePublicIPAddress(*ecs.AllocatePublicIpAddressRequest) (*ecs.AllocatePublicIpAddressResponse, error)

	//Disk
	CreateDisk(*ecs.CreateDiskRequest) (*ecs.CreateDiskResponse, error)
	AttachDisk(*ecs.AttachDiskRequest) (*ecs.AttachDiskResponse, error)
	DescribeDisks(*ecs.DescribeDisksRequest) (*ecs.DescribeDisksResponse, error)
	ModifyDiskChargeType(*ecs.ModifyDiskChargeTypeRequest) (*ecs.ModifyDiskChargeTypeResponse, error)
	ModifyDiskAttribute(*ecs.ModifyDiskAttributeRequest) (*ecs.ModifyDiskAttributeResponse, error)
	ModifyDiskSpec(*ecs.ModifyDiskSpecRequest) (*ecs.ModifyDiskSpecResponse, error)
	ReplaceSystemDisk(*ecs.ReplaceSystemDiskRequest) (*ecs.ReplaceSystemDiskResponse, error)
	ReInitDisk(*ecs.ReInitDiskRequest) (*ecs.ReInitDiskResponse, error)
	ResetDisk(*ecs.ResetDiskRequest) (*ecs.ResetDiskResponse, error)
	ResizeDisk(*ecs.ResizeDiskRequest) (*ecs.ResizeDiskResponse, error)
	DetachDisk(*ecs.DetachDiskRequest) (*ecs.DetachDiskResponse, error)
	DeleteDisk(*ecs.DeleteDiskRequest) (*ecs.DeleteDiskResponse, error)

	//Region & Zone
	DescribeRegions(*ecs.DescribeRegionsRequest) (*ecs.DescribeRegionsResponse, error)
	DescribeZones(*ecs.DescribeZonesRequest) (*ecs.DescribeZonesResponse, error)

	//Images
	DescribeImages(*ecs.DescribeImagesRequest) (*ecs.DescribeImagesResponse, error)

	//SecurityGroup
	CreateSecurityGroup(*ecs.CreateSecurityGroupRequest) (*ecs.CreateSecurityGroupResponse, error)
	AuthorizeSecurityGroup(*ecs.AuthorizeSecurityGroupRequest) (*ecs.AuthorizeSecurityGroupResponse, error)
	AuthorizeSecurityGroupEgress(*ecs.AuthorizeSecurityGroupEgressRequest) (*ecs.AuthorizeSecurityGroupEgressResponse, error)
	RevokeSecurityGroup(*ecs.RevokeSecurityGroupRequest) (*ecs.RevokeSecurityGroupResponse, error)
	RevokeSecurityGroupEgress(*ecs.RevokeSecurityGroupEgressRequest) (*ecs.RevokeSecurityGroupEgressResponse, error)
	JoinSecurityGroup(*ecs.JoinSecurityGroupRequest) (*ecs.JoinSecurityGroupResponse, error)
	LeaveSecurityGroup(*ecs.LeaveSecurityGroupRequest) (*ecs.LeaveSecurityGroupResponse, error)
	DescribeSecurityGroupAttribute(*ecs.DescribeSecurityGroupAttributeRequest) (*ecs.DescribeSecurityGroupAttributeResponse, error)
	DescribeSecurityGroups(*ecs.DescribeSecurityGroupsRequest) (*ecs.DescribeSecurityGroupsResponse, error)
	DescribeSecurityGroupReferences(*ecs.DescribeSecurityGroupReferencesRequest) (*ecs.DescribeSecurityGroupReferencesResponse, error)
	ModifySecurityGroupAttribute(*ecs.ModifySecurityGroupAttributeRequest) (*ecs.ModifySecurityGroupAttributeResponse, error)
	ModifySecurityGroupEgressRule(*ecs.ModifySecurityGroupEgressRuleRequest) (*ecs.ModifySecurityGroupEgressRuleResponse, error)
	ModifySecurityGroupPolicy(*ecs.ModifySecurityGroupPolicyRequest) (*ecs.ModifySecurityGroupPolicyResponse, error)
	ModifySecurityGroupRule(*ecs.ModifySecurityGroupRuleRequest) (*ecs.ModifySecurityGroupRuleResponse, error)
	DeleteSecurityGroup(*ecs.DeleteSecurityGroupRequest) (*ecs.DeleteSecurityGroupResponse, error)

	//VPC
	CreateVpc(*vpc.CreateVpcRequest) (*vpc.CreateVpcResponse, error)
	DeleteVpc(*vpc.DeleteVpcRequest) (*vpc.DeleteVpcResponse, error)
	DescribeVpcs(*vpc.DescribeVpcsRequest) (*vpc.DescribeVpcsResponse, error)
	CreateVSwitch(*vpc.CreateVSwitchRequest) (*vpc.CreateVSwitchResponse, error)
	DeleteVSwitch(*vpc.DeleteVSwitchRequest) (*vpc.DeleteVSwitchResponse, error)
	DescribeVSwitches(*vpc.DescribeVSwitchesRequest) (*vpc.DescribeVSwitchesResponse, error)

	//Natgateway
	CreateNatGateway(*vpc.CreateNatGatewayRequest) (*vpc.CreateNatGatewayResponse, error)
	DescribeNatGateways(*vpc.DescribeNatGatewaysRequest) (*vpc.DescribeNatGatewaysResponse, error)
	DeleteNatGateway(*vpc.DeleteNatGatewayRequest) (*vpc.DeleteNatGatewayResponse, error)

	//EIP
	AllocateEipAddress(*vpc.AllocateEipAddressRequest) (*vpc.AllocateEipAddressResponse, error)
	AssociateEipAddress(*vpc.AssociateEipAddressRequest) (*vpc.AssociateEipAddressResponse, error)
	ModifyEipAddressAttribute(*vpc.ModifyEipAddressAttributeRequest) (*vpc.ModifyEipAddressAttributeResponse, error)
	DescribeEipAddresses(*vpc.DescribeEipAddressesRequest) (*vpc.DescribeEipAddressesResponse, error)
	UnassociateEipAddress(*vpc.UnassociateEipAddressRequest) (*vpc.UnassociateEipAddressResponse, error)
	ReleaseEipAddress(*vpc.ReleaseEipAddressRequest) (*vpc.ReleaseEipAddressResponse, error)

	//SLB
	CreateLoadBalancer(*slb.CreateLoadBalancerRequest) (*slb.CreateLoadBalancerResponse, error)
	DeleteLoadBalancer(*slb.DeleteLoadBalancerRequest) (*slb.DeleteLoadBalancerResponse, error)
	DescribeLoadBalancers(*slb.DescribeLoadBalancersRequest) (*slb.DescribeLoadBalancersResponse, error)
	CreateLoadBalancerTCPListener(*slb.CreateLoadBalancerTCPListenerRequest) (*slb.CreateLoadBalancerTCPListenerResponse, error)
	SetLoadBalancerTCPListenerAttribute(*slb.SetLoadBalancerTCPListenerAttributeRequest) (*slb.SetLoadBalancerTCPListenerAttributeResponse, error)
	DescribeLoadBalancerTCPListenerAttribute(*slb.DescribeLoadBalancerTCPListenerAttributeRequest) (*slb.DescribeLoadBalancerTCPListenerAttributeResponse, error)
	CreateLoadBalancerUDPListener(*slb.CreateLoadBalancerUDPListenerRequest) (*slb.CreateLoadBalancerUDPListenerResponse, error)
	SetLoadBalancerUDPListenerAttribute(*slb.SetLoadBalancerUDPListenerAttributeRequest) (*slb.SetLoadBalancerUDPListenerAttributeResponse, error)
	DescribeLoadBalancerUDPListenerAttribute(*slb.DescribeLoadBalancerUDPListenerAttributeRequest) (*slb.DescribeLoadBalancerUDPListenerAttributeResponse, error)
	CreateLoadBalancerHTTPListener(*slb.CreateLoadBalancerHTTPListenerRequest) (*slb.CreateLoadBalancerHTTPListenerResponse, error)
	SetLoadBalancerHTTPListenerAttribute(*slb.SetLoadBalancerHTTPListenerAttributeRequest) (*slb.SetLoadBalancerHTTPListenerAttributeResponse, error)
	DescribeLoadBalancerHTTPListenerAttribute(*slb.DescribeLoadBalancerHTTPListenerAttributeRequest) (*slb.DescribeLoadBalancerHTTPListenerAttributeResponse, error)
	CreateLoadBalancerHTTPSListener(*slb.CreateLoadBalancerHTTPSListenerRequest) (*slb.CreateLoadBalancerHTTPSListenerResponse, error)
	SetLoadBalancerHTTPSListenerAttribute(*slb.SetLoadBalancerHTTPSListenerAttributeRequest) (*slb.SetLoadBalancerHTTPSListenerAttributeResponse, error)
	DescribeLoadBalancerHTTPSListenerAttribute(*slb.DescribeLoadBalancerHTTPSListenerAttributeRequest) (*slb.DescribeLoadBalancerHTTPSListenerAttributeResponse, error)
	StartLoadBalancerListener(*slb.StartLoadBalancerListenerRequest) (*slb.StartLoadBalancerListenerResponse, error)
	StopLoadBalancerListener(*slb.StopLoadBalancerListenerRequest) (*slb.StopLoadBalancerListenerResponse, error)
	DeleteLoadBalancerListener(*slb.DeleteLoadBalancerListenerRequest) (*slb.DeleteLoadBalancerListenerResponse, error)
	DescribeLoadBalancerListeners(*slb.DescribeLoadBalancerListenersRequest) (*slb.DescribeLoadBalancerListenersResponse, error)
	AddBackendServers(*slb.AddBackendServersRequest) (*slb.AddBackendServersResponse, error)
	RemoveBackendServers(*slb.RemoveBackendServersRequest) (*slb.RemoveBackendServersResponse, error)
	SetBackendServers(*slb.SetBackendServersRequest) (*slb.SetBackendServersResponse, error)
	DescribeHealthStatus(*slb.DescribeHealthStatusRequest) (*slb.DescribeHealthStatusResponse, error)
	CreateVServerGroup(*slb.CreateVServerGroupRequest) (*slb.CreateVServerGroupResponse, error)
	SetVServerGroupAttribute(*slb.SetVServerGroupAttributeRequest) (*slb.SetVServerGroupAttributeResponse, error)
	AddVServerGroupBackendServers(*slb.AddVServerGroupBackendServersRequest) (*slb.AddVServerGroupBackendServersResponse, error)
	RemoveVServerGroupBackendServers(*slb.RemoveVServerGroupBackendServersRequest) (*slb.RemoveVServerGroupBackendServersResponse, error)
	ModifyVServerGroupBackendServers(*slb.ModifyVServerGroupBackendServersRequest) (*slb.ModifyVServerGroupBackendServersResponse, error)
	DeleteVServerGroup(*slb.DeleteVServerGroupRequest) (*slb.DeleteVServerGroupResponse, error)
	DescribeVServerGroups(*slb.DescribeVServerGroupsRequest) (*slb.DescribeVServerGroupsResponse, error)
	DescribeVServerGroupAttribute(*slb.DescribeVServerGroupAttributeRequest) (*slb.DescribeVServerGroupAttributeResponse, error)

	// ResourceGroups
	ListResourceGroups(*resourcemanager.ListResourceGroupsRequest) (*resourcemanager.ListResourceGroupsResponse, error)
}

Client is a wrapper object for actual alibabacloud SDK clients to allow for easier testing.

func NewClient

func NewClient(ctrlRuntimeClient client.Client, secretName, namespace, regionID string, configManagedClient client.Client) (Client, error)

NewClient creates our client wrapper object for the actual alibabacloud clients we use.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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