resource

package
v1.9.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddDNSRecordResponse

type AddDNSRecordResponse struct {
	Errors  []CFError `json:"errors"`
	Success bool      `json:"success"`
	Result  Result    `json:"result"`
}

type AddMember

type AddMember struct {
	ID string `json:"id"`
}

type AddMemberResponse

type AddMemberResponse struct {
	Member AddMember `json:"member"`
}

type AddNodeResponse

type AddNodeResponse struct {
	ClusterID   string `json:"clusterId"`
	NodeGroupID string `json:"nodeGroupId"`
	MinSize     int    `json:"minSize"`
	MaxSize     int    `json:"maxSize"`
	ComputeID   string `json:"computeId"`
}

type Amphorae

type Amphorae struct {
	VrrpIP string `json:"vrrp_ip"`
}

type AppResource

type AppResource struct {
	App     string    `json:"app"`
	Env     string    `json:"env"`
	Version string    `json:"version"`
	Time    time.Time `json:"time"`
}

type CFError

type CFError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type ClusterInfoResource

type ClusterInfoResource struct {
	ClusterName string `json:"cluster_name"`
	ClusterID   string `json:"cluster_id"`
}

type CreateApplicationCredentialResponse

type CreateApplicationCredentialResponse struct {
	Credential Credential `json:"application_credential"`
}

type CreateClusterResponse

type CreateClusterResponse struct {
	ClusterUUID   string `json:"cluster_uuid"`
	ClusterName   string `json:"cluster_name"`
	ClusterStatus string `json:"cluster_status"`
}

type CreateComputeResponse

type CreateComputeResponse struct {
	Server Server `json:"server"`
}

type CreateFloatingIPResponse

type CreateFloatingIPResponse struct {
	FloatingIP FloatingIP `json:"floatingip"`
}

type CreateHealthMonitorResponse

type CreateHealthMonitorResponse struct {
	HealthMonitor HealthMonitor `json:"healthmonitor"`
}

type CreateKubeconfigResponse

type CreateKubeconfigResponse struct {
	ClusterUUID string `json:"cluster_uuid"`
}

type CreateListener

type CreateListener struct {
	ID string `json:"id"`
}

type CreateListenerResponse

type CreateListenerResponse struct {
	Listener CreateListener `json:"listener"`
}

type CreateLoadBalancer

type CreateLoadBalancer struct {
	ID string `json:"id"`
}

type CreateLoadBalancerResponse

type CreateLoadBalancerResponse struct {
	LoadBalancer CreateLoadBalancer `json:"loadbalancer"`
}

type CreateNetworkPortResponse

type CreateNetworkPortResponse struct {
	Port Port `json:"port"`
}

type CreateNodeGroupResponse

type CreateNodeGroupResponse struct {
	ClusterID   string `json:"cluster_id"`
	NodeGroupID string `json:"node_group_id"`
}

type CreatePool

type CreatePool struct {
	ID                 string `json:"id"`
	ProvisioningStatus string `json:"provisioning_status"`
}

type CreatePoolResponse

type CreatePoolResponse struct {
	Pool CreatePool `json:"pool"`
}

type CreateSecurityGroupResponse

type CreateSecurityGroupResponse struct {
	SecurityGroup SecurityGroup `json:"security_group"`
}

type Credential

type Credential struct {
	ID     string `json:"id"`
	Secret string `json:"secret"`
}

type DeleteNodeResponse

type DeleteNodeResponse struct {
	ClusterID   string `json:"cluster_id"`
	NodeGroupID string `json:"node_group_id"`
}

type DestroyCluster

type DestroyCluster struct {
	ClusterID         string    `json:"cluster_id"`
	ClusterDeleteDate time.Time `json:"cluster_delete_date"`
	ClusterStatus     string    `json:"cluster_status"`
}

type FixedIp

type FixedIp struct {
	IpAddress string `json:"ip_address"`
}

type Flavor

type Flavor struct {
	Id       string `json:"id"`
	Category string `json:"category"`
	State    string `json:"state"`
	VCPUs    int    `json:"vCPUs"`
	GPUs     int    `json:"gpus"`
	RAM      int    `json:"ram"`
}

type FloatingIP

type FloatingIP struct {
	ID         string `json:"id"`
	FloatingIP string `json:"floating_ip_address"`
}

type GetAmphoraesVrrpIpResponse

type GetAmphoraesVrrpIpResponse struct {
	Amphorae []Amphorae `json:"amphorae"`
}

type GetClusterDetailsResponse

type GetClusterDetailsResponse struct {
	ClusterUUID                  string      `json:"cluster_uuid"`
	ClusterName                  string      `json:"cluster_name"`
	ClusterVersion               string      `json:"cluster_version"`
	ClusterStatus                string      `json:"cluster_status"`
	ClusterProjectUUID           string      `json:"cluster_project_uuid"`
	ClusterLoadbalancerUUID      string      `json:"cluster_loadbalancer_uuid"`
	ClusterMasterServerGroup     NodeGroup   `json:"cluster_master_server_group_uuid"`
	ClusterWorkerServerGroups    []NodeGroup `json:"cluster_worker_server_groups_uuid"`
	ClusterSubnets               []string    `json:"cluster_subnets"`
	ClusterEndpoint              string      `json:"cluster_endpoint"`
	ClusterAPIAccess             string      `json:"cluster_api_access"`
	ClusterCertificateExpireDate time.Time   `json:"cluster_certificate_expire_date"`
}

type GetClusterErrorsResponse added in v1.7.0

type GetClusterErrorsResponse struct {
	ClusterUUID  string    `json:"cluster_uuid"`
	ErrorMessage string    `json:"error_message"`
	CreatedAt    time.Time `json:"created_at"`
}

type GetClusterResponse

type GetClusterResponse struct {
	ClusterName                  string    `json:"clusterName"`
	ClusterID                    string    `json:"clusterId"`
	ProjectID                    string    `json:"projectId"`
	KubernetesVersion            string    `json:"kubernetesVersion"`
	ClusterAPIAccess             string    `json:"clusterApiAccess"`
	ClusterStatus                string    `json:"clusterStatus"`
	ClusterSharedSecurityGroup   string    `json:"clusterSharedSecurityGroup"`
	ClusterCertificateExpireDate time.Time `json:"cluster_certificate_expire_date"`
}

type GetKubeConfigResponse

type GetKubeConfigResponse struct {
	ClusterUUID string `json:"cluster_uuid"`
	KubeConfig  string `json:"kubeconfig"`
}

type GetLoadBalancerListenersResponse

type GetLoadBalancerListenersResponse struct {
	Listeners []string `json:"listeners"`
}

type GetLoadBalancerPoolsResponse

type GetLoadBalancerPoolsResponse struct {
	Pools []string `json:"pools"`
}

type GetNetworkIdResponse

type GetNetworkIdResponse struct {
	Subnet NetworkIdSubnet `json:"subnet"`
}

type GetNodeGroupsResponse

type GetNodeGroupsResponse struct {
	NodeGroups []NodeGroup `json:"node_groups"`
}

type GetProjectDetailsResponse

type GetProjectDetailsResponse struct {
	Project Project `json:"project"`
}

type GetSecurityGroupResponse

type GetSecurityGroupResponse struct {
	SecurityGroup SecurityGroup `json:"security_group"`
}

type GetServerGroupMemberListResponse

type GetServerGroupMemberListResponse struct {
	Members []string `json:"members"`
}

type GetServerGroupResponse added in v1.1.10

type GetServerGroupResponse struct {
	ServerGroup struct {
		Members []string `json:"members"`
	} `json:"server_group"`
}

type GetTokenDetailsResponse

type GetTokenDetailsResponse struct {
	Token Token
}

type HealthMonitor

type HealthMonitor struct {
	ID                 string `json:"id"`
	ProvisioningStatus string `json:"provisioning_status"`
}

type ListHealthMonitorResponse

type ListHealthMonitorResponse struct {
	HealthMonitor HealthMonitor `json:"healthmonitor"`
}

type ListListener

type ListListener struct {
	ID                 string `json:"id"`
	Name               string `json:"name"`
	ProvisioningStatus string `json:"provisioning_status"`
}

type ListListenerResponse

type ListListenerResponse struct {
	Listener ListListener `json:"listener"`
}

type ListLoadBalancer

type ListLoadBalancer struct {
	ID                 string `json:"id"`
	Name               string `json:"name"`
	ProvisioningStatus string `json:"provisioning_status"`
	OperatingStatus    string `json:"operating_status"`
	VIPAddress         string `json:"vip_address"`
	VipPortID          string `json:"vip_port_id"`
}

type ListLoadBalancerResponse

type ListLoadBalancerResponse struct {
	LoadBalancer ListLoadBalancer `json:"loadbalancer"`
}

type ListSubnetByNameResponse

type ListSubnetByNameResponse struct {
	Subnet []Subnet `json:"subnet"`
}

type NetworkIdSubnet

type NetworkIdSubnet struct {
	NetworkID string `json:"network_id"`
}

type NetworkPortsResponse

type NetworkPortsResponse struct {
	Ports []string `json:"ports"`
}

type NodeGroup

type NodeGroup struct {
	ClusterUUID      string `json:"cluster_uuid"`
	NodeGroupUUID    string `json:"node_group_uuid"`
	NodeGroupName    string `json:"node_group_name"`
	NodeGroupMinSize int    `json:"node_group_min_size"`
	NodeGroupMaxSize int    `json:"node_group_max_size"`
	NodeDiskSize     int    `json:"node_disk_size"`
	NodeFlavorUUID   string `json:"node_flavor_uuid"`
	NodeGroupsType   string `json:"node_groups_type"`
	CurrentNodes     int    `json:"current_nodes"`
	NodeGroupsStatus string `json:"node_groups_status"`
}

type OpenstacServersResponse

type OpenstacServersResponse struct {
	OpenstackServers OpenstackServer `json:"server"`
}

type OpenstackFlavorResponse

type OpenstackFlavorResponse struct {
	Flavor OpenstackFlavors `json:"flavor"`
}

type OpenstackFlavors

type OpenstackFlavors struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	RAM   int    `json:"ram"`
	VCPUs int    `json:"vcpus"`
}

type OpenstackServer

type OpenstackServer struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Status string `json:"status"`
}

type Port

type Port struct {
	ID       string    `json:"id"`
	FixedIps []FixedIp `json:"fixed_ips"`
}

type Project

type Project struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Result

type Result struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type SecurityGroup

type SecurityGroup struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type SecurityGroupRulesResponse added in v1.1.10

type SecurityGroupRulesResponse struct {
	SecurityGroupRules []struct {
		ID string `json:"id"`
	} `json:"security_group_rules"`
}

type Server

type Server struct {
	ID string `json:"id"`
}

type ServerGroup

type ServerGroup struct {
	ID       string   `json:"id"`
	Name     string   `json:"name"`
	Policies []string `json:"policies"`
	Members  []string `json:"members"`
}

type ServerGroupResponse

type ServerGroupResponse struct {
	ServerGroup ServerGroup `json:"server_group"`
}

type Servers

type Servers struct {
	ClusterUUID   string `json:"cluster_uuid"`
	Id            string `json:"id"`
	NodeGroupUUID string `json:"node_group_uuid"`
	MinSize       int    `json:"node_group_min_size"`
	MaxSize       int    `json:"node_group_max_size"`
	Flavor        string `json:"node_flavor_uuid"`
	Status        string `json:"node_groups_status"`
}

type Subnet

type Subnet struct {
	ID string `json:"id"`
}

type SubnetResponse

type SubnetResponse struct {
	Subnet SubnetWithDetails `json:"subnet"`
}

type SubnetWithDetails

type SubnetWithDetails struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	IPVersion int    `json:"ip_version"`
	GatewayIP string `json:"gateway_ip"`
	CIDR      string `json:"cidr"`
}

type Token

type Token struct {
	User User `json:"user"`
}

type UpdateClusterResponse added in v1.1.10

type UpdateClusterResponse struct {
	ClusterUUID string `json:"cluster_uuid"`
}

type UpdateKubeconfigResponse added in v1.1.10

type UpdateKubeconfigResponse struct {
	ClusterUUID string `json:"cluster_uuid"`
}

type UpdateNodeGroupResponse

type UpdateNodeGroupResponse struct {
	ClusterID   string `json:"cluster_id"`
	NodeGroupID string `json:"node_group_id"`
	MinSize     int    `json:"min_size"`
	MaxSize     int    `json:"max_size"`
	Status      string `json:"status"`
}

type User

type User struct {
	ID string `json:"id"`
}

Jump to

Keyboard shortcuts

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