Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IALB ¶
type IALB interface { DescribeALBZones(request *alb.DescribeZonesRequest) (response *alb.DescribeZonesResponse, err error) TagALBResources(request *alb.TagResourcesRequest) (response *alb.TagResourcesResponse, err error) // ApplicationLoadBalancer CreateALB(ctx context.Context, resLB *albmodel.AlbLoadBalancer, trackingProvider tracking.TrackingProvider) (albmodel.LoadBalancerStatus, error) ReuseALB(ctx context.Context, resLB *albmodel.AlbLoadBalancer, lbID string, trackingProvider tracking.TrackingProvider) (albmodel.LoadBalancerStatus, error) UpdateALB(ctx context.Context, resLB *albmodel.AlbLoadBalancer, sdkLB alb.LoadBalancer) (albmodel.LoadBalancerStatus, error) DeleteALB(ctx context.Context, lbID string) error // ALB Listener CreateALBListener(ctx context.Context, resLS *albmodel.Listener) (albmodel.ListenerStatus, error) UpdateALBListener(ctx context.Context, resLS *albmodel.Listener, sdkLB *alb.Listener) (albmodel.ListenerStatus, error) DeleteALBListener(ctx context.Context, lsID string) error ListALBListeners(ctx context.Context, lbID string) ([]alb.Listener, error) // ALB Listener Rule CreateALBListenerRule(ctx context.Context, resLR *albmodel.ListenerRule) (albmodel.ListenerRuleStatus, error) CreateALBListenerRules(ctx context.Context, resLR []*albmodel.ListenerRule) (map[int]albmodel.ListenerRuleStatus, error) UpdateALBListenerRule(ctx context.Context, resLR *albmodel.ListenerRule, sdkLR *alb.Rule) (albmodel.ListenerRuleStatus, error) UpdateALBListenerRules(ctx context.Context, matches []albmodel.ResAndSDKListenerRulePair) error DeleteALBListenerRule(ctx context.Context, sdkLRId string) error DeleteALBListenerRules(ctx context.Context, sdkLRIds []string) error ListALBListenerRules(ctx context.Context, lsID string) ([]alb.Rule, error) // ALB Server RegisterALBServers(ctx context.Context, serverGroupID string, resServers []albmodel.BackendItem) error DeregisterALBServers(ctx context.Context, serverGroupID string, sdkServers []alb.BackendServer) error ReplaceALBServers(ctx context.Context, serverGroupID string, resServers []albmodel.BackendItem, sdkServers []alb.BackendServer) error ListALBServers(ctx context.Context, serverGroupID string) ([]alb.BackendServer, error) // ALB ServerGroup CreateALBServerGroup(ctx context.Context, resSGP *albmodel.ServerGroup, trackingProvider tracking.TrackingProvider) (albmodel.ServerGroupStatus, error) UpdateALBServerGroup(ctx context.Context, resSGP *albmodel.ServerGroup, sdkSGP albmodel.ServerGroupWithTags) (albmodel.ServerGroupStatus, error) DeleteALBServerGroup(ctx context.Context, serverGroupID string) error // ALB Tags ListALBServerGroupsWithTags(ctx context.Context, tagFilters map[string]string) ([]albmodel.ServerGroupWithTags, error) ListALBsWithTags(ctx context.Context, tagFilters map[string]string) ([]albmodel.AlbLoadBalancerWithTags, error) }
type IInstance ¶
type IInstance interface { ListInstances(ctx context.Context, ids []string) (map[string]*NodeAttribute, error) GetInstancesByIP(ctx context.Context, ips []string) (*NodeAttribute, error) // DescribeNetworkInterfaces query one or more elastic network interfaces (ENIs) DescribeNetworkInterfaces(vpcId string, ips []string, ipVersionType model.AddressIPVersionType) (map[string]string, error) }
type ILoadBalancer ¶
type ILoadBalancer interface { // LoadBalancer FindLoadBalancer(ctx context.Context, mdl *model.LoadBalancer) error CreateLoadBalancer(ctx context.Context, mdl *model.LoadBalancer, clientToken string) error DescribeLoadBalancer(ctx context.Context, mdl *model.LoadBalancer) error DeleteLoadBalancer(ctx context.Context, mdl *model.LoadBalancer) error ModifyLoadBalancerInstanceSpec(ctx context.Context, lbId string, spec string) error ModifyLoadBalancerInstanceChargeType(ctx context.Context, lbId string, instanceChargeType string, spec string) error SetLoadBalancerDeleteProtection(ctx context.Context, lbId string, flag string) error SetLoadBalancerName(ctx context.Context, lbId string, name string) error ModifyLoadBalancerInternetSpec(ctx context.Context, lbId string, chargeType string, bandwidth int) error SetLoadBalancerModificationProtection(ctx context.Context, lbId string, flag string) error // Listener DescribeLoadBalancerListeners(ctx context.Context, lbId string) ([]model.ListenerAttribute, error) StartLoadBalancerListener(ctx context.Context, lbId string, port int, proto string) error StopLoadBalancerListener(ctx context.Context, lbId string, port int, proto string) error DeleteLoadBalancerListener(ctx context.Context, lbId string, port int, proto string) error CreateLoadBalancerTCPListener(ctx context.Context, lbId string, listener model.ListenerAttribute) error SetLoadBalancerTCPListenerAttribute(ctx context.Context, lbId string, listener model.ListenerAttribute) error CreateLoadBalancerUDPListener(ctx context.Context, lbId string, listener model.ListenerAttribute) error SetLoadBalancerUDPListenerAttribute(ctx context.Context, lbId string, listener model.ListenerAttribute) error CreateLoadBalancerHTTPListener(ctx context.Context, lbId string, listener model.ListenerAttribute) error SetLoadBalancerHTTPListenerAttribute(ctx context.Context, lbId string, listener model.ListenerAttribute) error CreateLoadBalancerHTTPSListener(ctx context.Context, lbId string, listener model.ListenerAttribute) error SetLoadBalancerHTTPSListenerAttribute(ctx context.Context, lbId string, listener model.ListenerAttribute) error // VServerGroup DescribeVServerGroups(ctx context.Context, lbId string) ([]model.VServerGroup, error) CreateVServerGroup(ctx context.Context, vg *model.VServerGroup, lbId string) error DescribeVServerGroupAttribute(ctx context.Context, vGroupId string) (model.VServerGroup, error) DeleteVServerGroup(ctx context.Context, vGroupId string) error AddVServerGroupBackendServers(ctx context.Context, vGroupId string, backends string) error RemoveVServerGroupBackendServers(ctx context.Context, vGroupId string, backends string) error SetVServerGroupAttribute(ctx context.Context, vGroupId string, backends string) error ModifyVServerGroupBackendServers(ctx context.Context, vGroupId string, old string, new string) error // Tag TagCLBResource(ctx context.Context, resourceId string, tags []tag.Tag) error UntagResources(ctx context.Context, lbId string, tagKey *[]string) error ListCLBTagResources(ctx context.Context, lbId string) ([]tag.Tag, error) // Cert DescribeServerCertificateById(ctx context.Context, serverCertificateId string) (*model.CertAttribute, error) }
type IMetaData ¶
type IMetaData interface { // values from metadata server HostName() (string, error) ImageID() (string, error) InstanceID() (string, error) Mac() (string, error) NetworkType() (string, error) OwnerAccountID() (string, error) PrivateIPv4() (string, error) Region() (string, error) SerialNumber() (string, error) SourceAddress() (string, error) VpcCIDRBlock() (string, error) VpcID() (string, error) VswitchCIDRBlock() (string, error) Zone() (string, error) NTPConfigServers() ([]string, error) RoleName() (string, error) RamRoleToken(role string) (RoleAuth, error) VswitchID() (string, error) // values from cloud config file ClusterID() string }
IMetaData metadata interface
type INLB ¶
type INLB interface { //Tag TagNLBResource(ctx context.Context, resourceId string, resourceType nlbmodel.TagResourceType, tags []tag.Tag) error UntagNLBResources(ctx context.Context, resourceId string, resourceType nlbmodel.TagResourceType, tagKey []*string) error ListNLBTagResources(ctx context.Context, lbId string) ([]tag.Tag, error) // NetworkLoadBalancer FindNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error DescribeNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error CreateNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error DeleteNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error UpdateNLB(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error UpdateNLBAddressType(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error UpdateNLBZones(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error UpdateNLBSecurityGroupIds(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer, added, removed []string) error UpdateLoadBalancerProtection(ctx context.Context, lbId string, delCfg *nlbmodel.DeletionProtectionConfig, modCfg *nlbmodel.ModificationProtectionConfig) error AttachCommonBandwidthPackageToLoadBalancer(ctx context.Context, lbId string, bandwidthPackageId string) error DetachCommonBandwidthPackageFromLoadBalancer(ctx context.Context, lbId string, bandwidthPackageId string) error UpdateNLBIPv6AddressType(ctx context.Context, mdl *nlbmodel.NetworkLoadBalancer) error // ServerGroup ListNLBServerGroups(ctx context.Context, tags []tag.Tag) ([]*nlbmodel.ServerGroup, error) GetNLBServerGroup(ctx context.Context, sgId string) (*nlbmodel.ServerGroup, error) CreateNLBServerGroup(ctx context.Context, sg *nlbmodel.ServerGroup) error DeleteNLBServerGroup(ctx context.Context, sgId string) error UpdateNLBServerGroup(ctx context.Context, sg *nlbmodel.ServerGroup) error AddNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer) error RemoveNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer) error UpdateNLBServers(ctx context.Context, sgId string, backends []nlbmodel.ServerGroupServer) error ListNLBListeners(ctx context.Context, lbId string) ([]*nlbmodel.ListenerAttribute, error) CreateNLBListener(ctx context.Context, lbId string, lis *nlbmodel.ListenerAttribute) error UpdateNLBListener(ctx context.Context, lis *nlbmodel.ListenerAttribute) error DeleteNLBListener(ctx context.Context, listenerId string) error StartNLBListener(ctx context.Context, listenerId string) error }
type IPrivateZone ¶
type IPrivateZone interface { ListPVTZ(ctx context.Context) ([]*model.PvtzEndpoint, error) SearchPVTZ(ctx context.Context, ep *model.PvtzEndpoint, exact bool) ([]*model.PvtzEndpoint, error) UpdatePVTZ(ctx context.Context, ep *model.PvtzEndpoint) error DeletePVTZ(ctx context.Context, ep *model.PvtzEndpoint) error }
type ISLS ¶
type ISLS interface {
AnalyzeProductLog(request *sls.AnalyzeProductLogRequest) (response *sls.AnalyzeProductLogResponse, err error)
}
type IVPC ¶
type IVPC interface { CreateRoute(ctx context.Context, table string, provideID string, destinationCIDR string) (*model.Route, error) DeleteRoute(ctx context.Context, table, provideID, destinationCIDR string) error ListRoute(ctx context.Context, table string) ([]*model.Route, error) FindRoute(ctx context.Context, table, pvid, cidr string) (*model.Route, error) ListRouteTables(ctx context.Context, vpcID string) ([]string, error) DescribeEipAddresses(ctx context.Context, instanceType string, instanceId string) ([]string, error) DescribeVSwitches(ctx context.Context, vpcID string) ([]vpc.VSwitch, error) DescribeVpcCIDRBlock(ctx context.Context, vpcId string, ipVersion model.AddressIPVersionType) ([]*net.IPNet, error) }
type NodeAttribute ¶
type NodeAttribute struct { InstanceID string Addresses []v1.NodeAddress InstanceType string Zone string Region string NodePool string InstanceChargeType string Tags map[string]string }
NodeAttribute node attribute from cloud instance
Click to show internal directories.
Click to hide internal directories.