api

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCloudLoadBalancerNotFound = errors.New("LoadBalancer not found")
)

Functions

This section is empty.

Types

type CreateLoadBalancerResponse

type CreateLoadBalancerResponse struct {
	Response
	TaskID string `json:"TaskId"`
}

type CreateLoadBalancersArgs

type CreateLoadBalancersArgs struct {
	ClusterID        string        `json:"cluster_id"`
	NodeID           []string      `json:"node_id"`
	Annotations      []string      `json:"annotations"`
	PortMap          []PortMapping `json:"port_map"`
	ServiceName      string        `json:"service_name"`
	ServiceNameSpace string        `json:"service_name_space"`
	ServiceUid       string        `json:"service_uid"`
}

type DeleteLoadBalancersArgs

type DeleteLoadBalancersArgs struct {
	ClusterID        string `json:"cluster_id"`
	ServiceName      string `json:"service_name"`
	ServiceNameSpace string `json:"service_name_space"`
	ServiceUid       string `json:"service_uid"`
}

type DeleteLoadBalancersResponse

type DeleteLoadBalancersResponse struct {
	Response
	TaskID string `json:"TaskId"`
}

type DescribeInstanceExistsByProviderIDArgs

type DescribeInstanceExistsByProviderIDArgs struct {
	ProviderID string `json:"provider_id"`
}

type DescribeInstanceExistsByProviderIDResponse

type DescribeInstanceExistsByProviderIDResponse struct {
	Response
	Data struct {
		Status string `json:"status"`
	} `json:"Data"`
}

type DescribeInstancesLabelsAndNodeNameArgs

type DescribeInstancesLabelsAndNodeNameArgs struct {
	ClusterID string `json:"cluster_id"`
	NodeID    string `json:"node_id"`
}

type DescribeInstancesLabelsAndNodeNameResponse

type DescribeInstancesLabelsAndNodeNameResponse struct {
	Response
	Data struct {
		Labels   []map[string]string `json:"labels"`
		NodeName string              `json:"node_name"`
		Taints   []map[string]string `json:"taints"`
	} `json:"Data"`
}

type DescribeLoadBalancersArgs

type DescribeLoadBalancersArgs struct {
	ClusterID        string `json:"cluster_id"`
	ServiceName      string `json:"service_name"`
	ServiceNameSpace string `json:"service_name_space"`
	ServiceUid       string `json:"service_uid"`
}

type DescribeLoadBalancersResponse

type DescribeLoadBalancersResponse struct {
	Response
	Data struct {
		Status string   `json:"status"`
		Name   string   `json:"name"`
		Vips   []string `json:"vips"`
	} `json:"Data"`
}

type DescribeLoadBalancersTaskResultArgs

type DescribeLoadBalancersTaskResultArgs struct {
	TaskID string `json:"task_id"`
}

type DescribeLoadBalancersTaskResultResponse

type DescribeLoadBalancersTaskResultResponse struct {
	Response
	Data struct {
		Status string `json:"status"`
	} `json:"Data"`
}

type DescribeZoneByProviderIDArgs

type DescribeZoneByProviderIDArgs struct {
	ClusterID string `json:"cluster_id"`
	NodeID    string `json:"node_id"`
}

type DescribeZoneByProviderIDResponse

type DescribeZoneByProviderIDResponse struct {
	Response
	Data struct {
		Region string `json:"region"`
	} `json:"data"`
}

type PortMapping

type PortMapping struct {
	// Protocol v1.Protocol `json:"protocol"`
	Port     int32 `json:"port"`
	NodePort int32 `json:"node_port"`
}

type Response

type Response struct {
	Code     string `json:"Code"`
	Message  string `json:"Message"`
	CodeDesc string `json:"codeDesc,omitempty"`
}

type UpdateLoadBalancerResponse

type UpdateLoadBalancerResponse struct {
	Response
	TaskID string `json:"TaskId"`
}

type UpdateLoadBalancersArgs

type UpdateLoadBalancersArgs struct {
	ClusterID        string        `json:"cluster_id"`
	NodeID           []string      `json:"node_id"`
	Annotations      []string      `json:"annotations"`
	PortMap          []PortMapping `json:"port_map"`
	ServiceName      string        `json:"service_name"`
	ServiceNameSpace string        `json:"service_name_space"`
	ServiceUid       string        `json:"service_uid"`
}

Jump to

Keyboard shortcuts

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