cmaaws

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Package cmaaws is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var ClusterStatus_name = map[int32]string{
	0: "STATUS_UNSPECIFIED",
	1: "PROVISIONING",
	2: "RUNNING",
	3: "RECONCILING",
	4: "STOPPING",
	5: "ERROR",
	6: "DEGRADED",
}
View Source
var ClusterStatus_value = map[string]int32{
	"STATUS_UNSPECIFIED": 0,
	"PROVISIONING":       1,
	"RUNNING":            2,
	"RECONCILING":        3,
	"STOPPING":           4,
	"ERROR":              5,
	"DEGRADED":           6,
}

Functions

func RegisterClusterHandler

func RegisterClusterHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterClusterHandler registers the http handlers for service Cluster to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterClusterHandlerClient

func RegisterClusterHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ClusterClient) error

RegisterClusterHandler registers the http handlers for service Cluster to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ClusterClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ClusterClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ClusterClient" to call the correct interceptors.

func RegisterClusterHandlerFromEndpoint

func RegisterClusterHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterClusterHandlerFromEndpoint is same as RegisterClusterHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterClusterServer

func RegisterClusterServer(s *grpc.Server, srv ClusterServer)

Types

type AWSCredentials

type AWSCredentials struct {
	// The SecretKeyId for API Access
	SecretKeyId string `protobuf:"bytes,1,opt,name=secret_key_id,json=secretKeyId,proto3" json:"secret_key_id,omitempty"`
	// The SecretAccessKey for API access
	SecretAccessKey string `protobuf:"bytes,2,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"`
	// The Region for API access
	Region               string   `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The credentials to use for creating the cluster

func (*AWSCredentials) Descriptor

func (*AWSCredentials) Descriptor() ([]byte, []int)

func (*AWSCredentials) GetRegion

func (m *AWSCredentials) GetRegion() string

func (*AWSCredentials) GetSecretAccessKey

func (m *AWSCredentials) GetSecretAccessKey() string

func (*AWSCredentials) GetSecretKeyId

func (m *AWSCredentials) GetSecretKeyId() string

func (*AWSCredentials) ProtoMessage

func (*AWSCredentials) ProtoMessage()

func (*AWSCredentials) Reset

func (m *AWSCredentials) Reset()

func (*AWSCredentials) String

func (m *AWSCredentials) String() string

func (*AWSCredentials) XXX_DiscardUnknown

func (m *AWSCredentials) XXX_DiscardUnknown()

func (*AWSCredentials) XXX_Marshal

func (m *AWSCredentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AWSCredentials) XXX_Merge

func (dst *AWSCredentials) XXX_Merge(src proto.Message)

func (*AWSCredentials) XXX_Size

func (m *AWSCredentials) XXX_Size() int

func (*AWSCredentials) XXX_Unmarshal

func (m *AWSCredentials) XXX_Unmarshal(b []byte) error

type ClusterClient

type ClusterClient interface {
	// Will provision a cluster
	CreateCluster(ctx context.Context, in *CreateClusterMsg, opts ...grpc.CallOption) (*CreateClusterReply, error)
	// Will retrieve the status of a cluster and its kubeconfig for connectivity
	GetCluster(ctx context.Context, in *GetClusterMsg, opts ...grpc.CallOption) (*GetClusterReply, error)
	// Will delete a cluster
	DeleteCluster(ctx context.Context, in *DeleteClusterMsg, opts ...grpc.CallOption) (*DeleteClusterReply, error)
	// Will retrieve a list of clusters
	GetClusterList(ctx context.Context, in *GetClusterListMsg, opts ...grpc.CallOption) (*GetClusterListReply, error)
	// Will return version information about api server
	GetVersionInformation(ctx context.Context, in *GetVersionMsg, opts ...grpc.CallOption) (*GetVersionReply, error)
}

ClusterClient is the client API for Cluster service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewClusterClient

func NewClusterClient(cc *grpc.ClientConn) ClusterClient

type ClusterDetailItem

type ClusterDetailItem struct {
	// ID of the cluster
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the cluster
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Additional information about the status of the cluster
	StatusMessage string `protobuf:"bytes,3,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	// What is the kubeconfig to connect to the cluster
	Kubeconfig string `protobuf:"bytes,4,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"`
	// The status of the cluster
	Status               ClusterStatus `protobuf:"varint,5,opt,name=status,proto3,enum=cmaaws.ClusterStatus" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*ClusterDetailItem) Descriptor

func (*ClusterDetailItem) Descriptor() ([]byte, []int)

func (*ClusterDetailItem) GetId

func (m *ClusterDetailItem) GetId() string

func (*ClusterDetailItem) GetKubeconfig

func (m *ClusterDetailItem) GetKubeconfig() string

func (*ClusterDetailItem) GetName

func (m *ClusterDetailItem) GetName() string

func (*ClusterDetailItem) GetStatus

func (m *ClusterDetailItem) GetStatus() ClusterStatus

func (*ClusterDetailItem) GetStatusMessage

func (m *ClusterDetailItem) GetStatusMessage() string

func (*ClusterDetailItem) ProtoMessage

func (*ClusterDetailItem) ProtoMessage()

func (*ClusterDetailItem) Reset

func (m *ClusterDetailItem) Reset()

func (*ClusterDetailItem) String

func (m *ClusterDetailItem) String() string

func (*ClusterDetailItem) XXX_DiscardUnknown

func (m *ClusterDetailItem) XXX_DiscardUnknown()

func (*ClusterDetailItem) XXX_Marshal

func (m *ClusterDetailItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClusterDetailItem) XXX_Merge

func (dst *ClusterDetailItem) XXX_Merge(src proto.Message)

func (*ClusterDetailItem) XXX_Size

func (m *ClusterDetailItem) XXX_Size() int

func (*ClusterDetailItem) XXX_Unmarshal

func (m *ClusterDetailItem) XXX_Unmarshal(b []byte) error

type ClusterItem

type ClusterItem struct {
	// ID of the cluster
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the cluster
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Additional information about the status of the cluster
	StatusMessage string `protobuf:"bytes,3,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	// The status of the cluster
	Status ClusterStatus `protobuf:"varint,4,opt,name=status,proto3,enum=cmaaws.ClusterStatus" json:"status,omitempty"`
	// Datacenter region
	Region               string   `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClusterItem) Descriptor

func (*ClusterItem) Descriptor() ([]byte, []int)

func (*ClusterItem) GetId

func (m *ClusterItem) GetId() string

func (*ClusterItem) GetName

func (m *ClusterItem) GetName() string

func (*ClusterItem) GetRegion

func (m *ClusterItem) GetRegion() string

func (*ClusterItem) GetStatus

func (m *ClusterItem) GetStatus() ClusterStatus

func (*ClusterItem) GetStatusMessage

func (m *ClusterItem) GetStatusMessage() string

func (*ClusterItem) ProtoMessage

func (*ClusterItem) ProtoMessage()

func (*ClusterItem) Reset

func (m *ClusterItem) Reset()

func (*ClusterItem) String

func (m *ClusterItem) String() string

func (*ClusterItem) XXX_DiscardUnknown

func (m *ClusterItem) XXX_DiscardUnknown()

func (*ClusterItem) XXX_Marshal

func (m *ClusterItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClusterItem) XXX_Merge

func (dst *ClusterItem) XXX_Merge(src proto.Message)

func (*ClusterItem) XXX_Size

func (m *ClusterItem) XXX_Size() int

func (*ClusterItem) XXX_Unmarshal

func (m *ClusterItem) XXX_Unmarshal(b []byte) error

type ClusterServer

type ClusterServer interface {
	// Will provision a cluster
	CreateCluster(context.Context, *CreateClusterMsg) (*CreateClusterReply, error)
	// Will retrieve the status of a cluster and its kubeconfig for connectivity
	GetCluster(context.Context, *GetClusterMsg) (*GetClusterReply, error)
	// Will delete a cluster
	DeleteCluster(context.Context, *DeleteClusterMsg) (*DeleteClusterReply, error)
	// Will retrieve a list of clusters
	GetClusterList(context.Context, *GetClusterListMsg) (*GetClusterListReply, error)
	// Will return version information about api server
	GetVersionInformation(context.Context, *GetVersionMsg) (*GetVersionReply, error)
}

ClusterServer is the server API for Cluster service.

type ClusterStatus

type ClusterStatus int32
const (
	// Not set
	ClusterStatus_STATUS_UNSPECIFIED ClusterStatus = 0
	// The PROVISIONING state indicates the cluster is being created.
	ClusterStatus_PROVISIONING ClusterStatus = 1
	// The RUNNING state indicates the cluster has been created and is fully usable.
	ClusterStatus_RUNNING ClusterStatus = 2
	// The RECONCILING state indicates that some work is actively being done on the cluster, such as upgrading the master or node software.
	ClusterStatus_RECONCILING ClusterStatus = 3
	// The STOPPING state indicates the cluster is being deleted
	ClusterStatus_STOPPING ClusterStatus = 4
	// The ERROR state indicates the cluster may be unusable
	ClusterStatus_ERROR ClusterStatus = 5
	// The DEGRADED state indicates the cluster requires user action to restore full functionality
	ClusterStatus_DEGRADED ClusterStatus = 6
)

func (ClusterStatus) EnumDescriptor

func (ClusterStatus) EnumDescriptor() ([]byte, []int)

func (ClusterStatus) String

func (x ClusterStatus) String() string

type CreateClusterAWSSpec

type CreateClusterAWSSpec struct {
	// The AWS Data Center
	DataCenter *CreateClusterAWSSpec_AWSDataCenter `protobuf:"bytes,1,opt,name=data_center,json=dataCenter,proto3" json:"data_center,omitempty"`
	// Credentials to build the cluster
	Credentials *AWSCredentials `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"`
	// BYO items
	Resources *CreateClusterAWSSpec_AWSPreconfiguredItems `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"`
	// Instance groups
	InstanceGroups       []*CreateClusterAWSSpec_AWSInstanceGroup `protobuf:"bytes,4,rep,name=instance_groups,json=instanceGroups,proto3" json:"instance_groups,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                 `json:"-"`
	XXX_unrecognized     []byte                                   `json:"-"`
	XXX_sizecache        int32                                    `json:"-"`
}

func (*CreateClusterAWSSpec) Descriptor

func (*CreateClusterAWSSpec) Descriptor() ([]byte, []int)

func (*CreateClusterAWSSpec) GetCredentials

func (m *CreateClusterAWSSpec) GetCredentials() *AWSCredentials

func (*CreateClusterAWSSpec) GetDataCenter

func (*CreateClusterAWSSpec) GetInstanceGroups

func (*CreateClusterAWSSpec) GetResources

func (*CreateClusterAWSSpec) ProtoMessage

func (*CreateClusterAWSSpec) ProtoMessage()

func (*CreateClusterAWSSpec) Reset

func (m *CreateClusterAWSSpec) Reset()

func (*CreateClusterAWSSpec) String

func (m *CreateClusterAWSSpec) String() string

func (*CreateClusterAWSSpec) XXX_DiscardUnknown

func (m *CreateClusterAWSSpec) XXX_DiscardUnknown()

func (*CreateClusterAWSSpec) XXX_Marshal

func (m *CreateClusterAWSSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateClusterAWSSpec) XXX_Merge

func (dst *CreateClusterAWSSpec) XXX_Merge(src proto.Message)

func (*CreateClusterAWSSpec) XXX_Size

func (m *CreateClusterAWSSpec) XXX_Size() int

func (*CreateClusterAWSSpec) XXX_Unmarshal

func (m *CreateClusterAWSSpec) XXX_Unmarshal(b []byte) error

type CreateClusterAWSSpec_AWSDataCenter

type CreateClusterAWSSpec_AWSDataCenter struct {
	// Which region (us-east-1, etc.)
	Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
	// Which availability zones (us-east-1b, us-east-2c, us-west-2d, etc.)
	AvailabilityZones    []string `protobuf:"bytes,2,rep,name=availability_zones,json=availabilityZones,proto3" json:"availability_zones,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Which Data Center

func (*CreateClusterAWSSpec_AWSDataCenter) Descriptor

func (*CreateClusterAWSSpec_AWSDataCenter) Descriptor() ([]byte, []int)

func (*CreateClusterAWSSpec_AWSDataCenter) GetAvailabilityZones

func (m *CreateClusterAWSSpec_AWSDataCenter) GetAvailabilityZones() []string

func (*CreateClusterAWSSpec_AWSDataCenter) GetRegion

func (*CreateClusterAWSSpec_AWSDataCenter) ProtoMessage

func (*CreateClusterAWSSpec_AWSDataCenter) ProtoMessage()

func (*CreateClusterAWSSpec_AWSDataCenter) Reset

func (*CreateClusterAWSSpec_AWSDataCenter) String

func (*CreateClusterAWSSpec_AWSDataCenter) XXX_DiscardUnknown

func (m *CreateClusterAWSSpec_AWSDataCenter) XXX_DiscardUnknown()

func (*CreateClusterAWSSpec_AWSDataCenter) XXX_Marshal

func (m *CreateClusterAWSSpec_AWSDataCenter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateClusterAWSSpec_AWSDataCenter) XXX_Merge

func (dst *CreateClusterAWSSpec_AWSDataCenter) XXX_Merge(src proto.Message)

func (*CreateClusterAWSSpec_AWSDataCenter) XXX_Size

func (*CreateClusterAWSSpec_AWSDataCenter) XXX_Unmarshal

func (m *CreateClusterAWSSpec_AWSDataCenter) XXX_Unmarshal(b []byte) error

type CreateClusterAWSSpec_AWSInstanceGroup

type CreateClusterAWSSpec_AWSInstanceGroup struct {
	// Instance type (m5.large, etc.)
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Minimum number of instances (defaults to zero)
	MinQuantity int32 `protobuf:"varint,2,opt,name=min_quantity,json=minQuantity,proto3" json:"min_quantity,omitempty"`
	// Maximum number of instances (defaults to zero)
	MaxQuantity int32 `protobuf:"varint,3,opt,name=max_quantity,json=maxQuantity,proto3" json:"max_quantity,omitempty"`
	// Name of instance group (optional auto-generated if not set)
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Number of worker node instances desired (defaults to zero)
	DesiredQuantity int32 `protobuf:"varint,5,opt,name=desired_quantity,json=desiredQuantity,proto3" json:"desired_quantity,omitempty"`
	// SSH Access to open ssh access on the nodes
	SshAccess            bool     `protobuf:"varint,6,opt,name=ssh_access,json=sshAccess,proto3" json:"ssh_access,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Instance groups define a type and number of instances

func (*CreateClusterAWSSpec_AWSInstanceGroup) Descriptor

func (*CreateClusterAWSSpec_AWSInstanceGroup) Descriptor() ([]byte, []int)

func (*CreateClusterAWSSpec_AWSInstanceGroup) GetDesiredQuantity

func (m *CreateClusterAWSSpec_AWSInstanceGroup) GetDesiredQuantity() int32

func (*CreateClusterAWSSpec_AWSInstanceGroup) GetMaxQuantity

func (m *CreateClusterAWSSpec_AWSInstanceGroup) GetMaxQuantity() int32

func (*CreateClusterAWSSpec_AWSInstanceGroup) GetMinQuantity

func (m *CreateClusterAWSSpec_AWSInstanceGroup) GetMinQuantity() int32

func (*CreateClusterAWSSpec_AWSInstanceGroup) GetName

func (*CreateClusterAWSSpec_AWSInstanceGroup) GetSshAccess

func (m *CreateClusterAWSSpec_AWSInstanceGroup) GetSshAccess() bool

func (*CreateClusterAWSSpec_AWSInstanceGroup) GetType

func (*CreateClusterAWSSpec_AWSInstanceGroup) ProtoMessage

func (*CreateClusterAWSSpec_AWSInstanceGroup) ProtoMessage()

func (*CreateClusterAWSSpec_AWSInstanceGroup) Reset

func (*CreateClusterAWSSpec_AWSInstanceGroup) String

func (*CreateClusterAWSSpec_AWSInstanceGroup) XXX_DiscardUnknown

func (m *CreateClusterAWSSpec_AWSInstanceGroup) XXX_DiscardUnknown()

func (*CreateClusterAWSSpec_AWSInstanceGroup) XXX_Marshal

func (m *CreateClusterAWSSpec_AWSInstanceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateClusterAWSSpec_AWSInstanceGroup) XXX_Merge

func (*CreateClusterAWSSpec_AWSInstanceGroup) XXX_Size

func (*CreateClusterAWSSpec_AWSInstanceGroup) XXX_Unmarshal

func (m *CreateClusterAWSSpec_AWSInstanceGroup) XXX_Unmarshal(b []byte) error

type CreateClusterAWSSpec_AWSPreconfiguredItems

type CreateClusterAWSSpec_AWSPreconfiguredItems struct {
	// The VPC id, blank for for "create one for you", filled if you are BYO VPC
	VpcId string `protobuf:"bytes,1,opt,name=vpc_id,json=vpcId,proto3" json:"vpc_id,omitempty"`
	// Security group
	SecurityGroupId string `protobuf:"bytes,2,opt,name=security_group_id,json=securityGroupId,proto3" json:"security_group_id,omitempty"`
	// The IAM role for the cluster (arn)
	IamRoleArn           string   `protobuf:"bytes,3,opt,name=iam_role_arn,json=iamRoleArn,proto3" json:"iam_role_arn,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

For when some things are already created

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) Descriptor

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) GetIamRoleArn

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) GetSecurityGroupId

func (m *CreateClusterAWSSpec_AWSPreconfiguredItems) GetSecurityGroupId() string

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) GetVpcId

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) ProtoMessage

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) Reset

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) String

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) XXX_DiscardUnknown

func (m *CreateClusterAWSSpec_AWSPreconfiguredItems) XXX_DiscardUnknown()

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) XXX_Marshal

func (m *CreateClusterAWSSpec_AWSPreconfiguredItems) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) XXX_Merge

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) XXX_Size

func (*CreateClusterAWSSpec_AWSPreconfiguredItems) XXX_Unmarshal

type CreateClusterMsg

type CreateClusterMsg struct {
	// Name of the cluster to be provisioned
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The provider specification
	Provider             *CreateClusterProviderSpec `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func (*CreateClusterMsg) Descriptor

func (*CreateClusterMsg) Descriptor() ([]byte, []int)

func (*CreateClusterMsg) GetName

func (m *CreateClusterMsg) GetName() string

func (*CreateClusterMsg) GetProvider

func (m *CreateClusterMsg) GetProvider() *CreateClusterProviderSpec

func (*CreateClusterMsg) ProtoMessage

func (*CreateClusterMsg) ProtoMessage()

func (*CreateClusterMsg) Reset

func (m *CreateClusterMsg) Reset()

func (*CreateClusterMsg) String

func (m *CreateClusterMsg) String() string

func (*CreateClusterMsg) XXX_DiscardUnknown

func (m *CreateClusterMsg) XXX_DiscardUnknown()

func (*CreateClusterMsg) XXX_Marshal

func (m *CreateClusterMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateClusterMsg) XXX_Merge

func (dst *CreateClusterMsg) XXX_Merge(src proto.Message)

func (*CreateClusterMsg) XXX_Size

func (m *CreateClusterMsg) XXX_Size() int

func (*CreateClusterMsg) XXX_Unmarshal

func (m *CreateClusterMsg) XXX_Unmarshal(b []byte) error

type CreateClusterProviderSpec

type CreateClusterProviderSpec struct {
	// What is the provider - currently this is aws or maas
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The version of Kubernetes
	K8SVersion string `protobuf:"bytes,2,opt,name=k8s_version,json=k8sVersion,proto3" json:"k8s_version,omitempty"`
	// The AWS specification
	Aws *CreateClusterAWSSpec `protobuf:"bytes,3,opt,name=aws,proto3" json:"aws,omitempty"`
	// Whether or not the cluster is HA
	HighAvailability bool `protobuf:"varint,4,opt,name=high_availability,json=highAvailability,proto3" json:"high_availability,omitempty"`
	// The fabric to be used
	NetworkFabric        string   `protobuf:"bytes,5,opt,name=network_fabric,json=networkFabric,proto3" json:"network_fabric,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateClusterProviderSpec) Descriptor

func (*CreateClusterProviderSpec) Descriptor() ([]byte, []int)

func (*CreateClusterProviderSpec) GetAws

func (*CreateClusterProviderSpec) GetHighAvailability

func (m *CreateClusterProviderSpec) GetHighAvailability() bool

func (*CreateClusterProviderSpec) GetK8SVersion

func (m *CreateClusterProviderSpec) GetK8SVersion() string

func (*CreateClusterProviderSpec) GetName

func (m *CreateClusterProviderSpec) GetName() string

func (*CreateClusterProviderSpec) GetNetworkFabric

func (m *CreateClusterProviderSpec) GetNetworkFabric() string

func (*CreateClusterProviderSpec) ProtoMessage

func (*CreateClusterProviderSpec) ProtoMessage()

func (*CreateClusterProviderSpec) Reset

func (m *CreateClusterProviderSpec) Reset()

func (*CreateClusterProviderSpec) String

func (m *CreateClusterProviderSpec) String() string

func (*CreateClusterProviderSpec) XXX_DiscardUnknown

func (m *CreateClusterProviderSpec) XXX_DiscardUnknown()

func (*CreateClusterProviderSpec) XXX_Marshal

func (m *CreateClusterProviderSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateClusterProviderSpec) XXX_Merge

func (dst *CreateClusterProviderSpec) XXX_Merge(src proto.Message)

func (*CreateClusterProviderSpec) XXX_Size

func (m *CreateClusterProviderSpec) XXX_Size() int

func (*CreateClusterProviderSpec) XXX_Unmarshal

func (m *CreateClusterProviderSpec) XXX_Unmarshal(b []byte) error

type CreateClusterReply

type CreateClusterReply struct {
	// Whether or not the cluster was provisioned by this request
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// The details of the cluster request response
	Cluster              *ClusterItem `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*CreateClusterReply) Descriptor

func (*CreateClusterReply) Descriptor() ([]byte, []int)

func (*CreateClusterReply) GetCluster

func (m *CreateClusterReply) GetCluster() *ClusterItem

func (*CreateClusterReply) GetOk

func (m *CreateClusterReply) GetOk() bool

func (*CreateClusterReply) ProtoMessage

func (*CreateClusterReply) ProtoMessage()

func (*CreateClusterReply) Reset

func (m *CreateClusterReply) Reset()

func (*CreateClusterReply) String

func (m *CreateClusterReply) String() string

func (*CreateClusterReply) XXX_DiscardUnknown

func (m *CreateClusterReply) XXX_DiscardUnknown()

func (*CreateClusterReply) XXX_Marshal

func (m *CreateClusterReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateClusterReply) XXX_Merge

func (dst *CreateClusterReply) XXX_Merge(src proto.Message)

func (*CreateClusterReply) XXX_Size

func (m *CreateClusterReply) XXX_Size() int

func (*CreateClusterReply) XXX_Unmarshal

func (m *CreateClusterReply) XXX_Unmarshal(b []byte) error

type DeleteClusterMsg

type DeleteClusterMsg struct {
	// What is the cluster's name to destroy
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Credentials to delete the cluster
	Credentials *AWSCredentials `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"`
	// Datacenter region
	Region               string   `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteClusterMsg) Descriptor

func (*DeleteClusterMsg) Descriptor() ([]byte, []int)

func (*DeleteClusterMsg) GetCredentials

func (m *DeleteClusterMsg) GetCredentials() *AWSCredentials

func (*DeleteClusterMsg) GetName

func (m *DeleteClusterMsg) GetName() string

func (*DeleteClusterMsg) GetRegion

func (m *DeleteClusterMsg) GetRegion() string

func (*DeleteClusterMsg) ProtoMessage

func (*DeleteClusterMsg) ProtoMessage()

func (*DeleteClusterMsg) Reset

func (m *DeleteClusterMsg) Reset()

func (*DeleteClusterMsg) String

func (m *DeleteClusterMsg) String() string

func (*DeleteClusterMsg) XXX_DiscardUnknown

func (m *DeleteClusterMsg) XXX_DiscardUnknown()

func (*DeleteClusterMsg) XXX_Marshal

func (m *DeleteClusterMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteClusterMsg) XXX_Merge

func (dst *DeleteClusterMsg) XXX_Merge(src proto.Message)

func (*DeleteClusterMsg) XXX_Size

func (m *DeleteClusterMsg) XXX_Size() int

func (*DeleteClusterMsg) XXX_Unmarshal

func (m *DeleteClusterMsg) XXX_Unmarshal(b []byte) error

type DeleteClusterReply

type DeleteClusterReply struct {
	// Could the cluster be destroyed
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// Status of the request
	Status               string   `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteClusterReply) Descriptor

func (*DeleteClusterReply) Descriptor() ([]byte, []int)

func (*DeleteClusterReply) GetOk

func (m *DeleteClusterReply) GetOk() bool

func (*DeleteClusterReply) GetStatus

func (m *DeleteClusterReply) GetStatus() string

func (*DeleteClusterReply) ProtoMessage

func (*DeleteClusterReply) ProtoMessage()

func (*DeleteClusterReply) Reset

func (m *DeleteClusterReply) Reset()

func (*DeleteClusterReply) String

func (m *DeleteClusterReply) String() string

func (*DeleteClusterReply) XXX_DiscardUnknown

func (m *DeleteClusterReply) XXX_DiscardUnknown()

func (*DeleteClusterReply) XXX_Marshal

func (m *DeleteClusterReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteClusterReply) XXX_Merge

func (dst *DeleteClusterReply) XXX_Merge(src proto.Message)

func (*DeleteClusterReply) XXX_Size

func (m *DeleteClusterReply) XXX_Size() int

func (*DeleteClusterReply) XXX_Unmarshal

func (m *DeleteClusterReply) XXX_Unmarshal(b []byte) error

type GetClusterListMsg

type GetClusterListMsg struct {
	// Credentials to query for the cluster
	Credentials *AWSCredentials `protobuf:"bytes,1,opt,name=credentials,proto3" json:"credentials,omitempty"`
	// Datacenter region (all regions checked if not set)
	Region               string   `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetClusterListMsg) Descriptor

func (*GetClusterListMsg) Descriptor() ([]byte, []int)

func (*GetClusterListMsg) GetCredentials

func (m *GetClusterListMsg) GetCredentials() *AWSCredentials

func (*GetClusterListMsg) GetRegion

func (m *GetClusterListMsg) GetRegion() string

func (*GetClusterListMsg) ProtoMessage

func (*GetClusterListMsg) ProtoMessage()

func (*GetClusterListMsg) Reset

func (m *GetClusterListMsg) Reset()

func (*GetClusterListMsg) String

func (m *GetClusterListMsg) String() string

func (*GetClusterListMsg) XXX_DiscardUnknown

func (m *GetClusterListMsg) XXX_DiscardUnknown()

func (*GetClusterListMsg) XXX_Marshal

func (m *GetClusterListMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetClusterListMsg) XXX_Merge

func (dst *GetClusterListMsg) XXX_Merge(src proto.Message)

func (*GetClusterListMsg) XXX_Size

func (m *GetClusterListMsg) XXX_Size() int

func (*GetClusterListMsg) XXX_Unmarshal

func (m *GetClusterListMsg) XXX_Unmarshal(b []byte) error

type GetClusterListReply

type GetClusterListReply struct {
	// Is the cluster in the system
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// List of clusters
	Clusters             []*ClusterItem `protobuf:"bytes,2,rep,name=clusters,proto3" json:"clusters,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*GetClusterListReply) Descriptor

func (*GetClusterListReply) Descriptor() ([]byte, []int)

func (*GetClusterListReply) GetClusters

func (m *GetClusterListReply) GetClusters() []*ClusterItem

func (*GetClusterListReply) GetOk

func (m *GetClusterListReply) GetOk() bool

func (*GetClusterListReply) ProtoMessage

func (*GetClusterListReply) ProtoMessage()

func (*GetClusterListReply) Reset

func (m *GetClusterListReply) Reset()

func (*GetClusterListReply) String

func (m *GetClusterListReply) String() string

func (*GetClusterListReply) XXX_DiscardUnknown

func (m *GetClusterListReply) XXX_DiscardUnknown()

func (*GetClusterListReply) XXX_Marshal

func (m *GetClusterListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetClusterListReply) XXX_Merge

func (dst *GetClusterListReply) XXX_Merge(src proto.Message)

func (*GetClusterListReply) XXX_Size

func (m *GetClusterListReply) XXX_Size() int

func (*GetClusterListReply) XXX_Unmarshal

func (m *GetClusterListReply) XXX_Unmarshal(b []byte) error

type GetClusterMsg

type GetClusterMsg struct {
	// Name of the cluster to be looked up
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Credentials to query for the cluster
	Credentials *AWSCredentials `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"`
	// Datacenter region
	Region               string   `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetClusterMsg) Descriptor

func (*GetClusterMsg) Descriptor() ([]byte, []int)

func (*GetClusterMsg) GetCredentials

func (m *GetClusterMsg) GetCredentials() *AWSCredentials

func (*GetClusterMsg) GetName

func (m *GetClusterMsg) GetName() string

func (*GetClusterMsg) GetRegion

func (m *GetClusterMsg) GetRegion() string

func (*GetClusterMsg) ProtoMessage

func (*GetClusterMsg) ProtoMessage()

func (*GetClusterMsg) Reset

func (m *GetClusterMsg) Reset()

func (*GetClusterMsg) String

func (m *GetClusterMsg) String() string

func (*GetClusterMsg) XXX_DiscardUnknown

func (m *GetClusterMsg) XXX_DiscardUnknown()

func (*GetClusterMsg) XXX_Marshal

func (m *GetClusterMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetClusterMsg) XXX_Merge

func (dst *GetClusterMsg) XXX_Merge(src proto.Message)

func (*GetClusterMsg) XXX_Size

func (m *GetClusterMsg) XXX_Size() int

func (*GetClusterMsg) XXX_Unmarshal

func (m *GetClusterMsg) XXX_Unmarshal(b []byte) error

type GetClusterReply

type GetClusterReply struct {
	// Is the cluster in the system
	Ok                   bool               `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	Cluster              *ClusterDetailItem `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*GetClusterReply) Descriptor

func (*GetClusterReply) Descriptor() ([]byte, []int)

func (*GetClusterReply) GetCluster

func (m *GetClusterReply) GetCluster() *ClusterDetailItem

func (*GetClusterReply) GetOk

func (m *GetClusterReply) GetOk() bool

func (*GetClusterReply) ProtoMessage

func (*GetClusterReply) ProtoMessage()

func (*GetClusterReply) Reset

func (m *GetClusterReply) Reset()

func (*GetClusterReply) String

func (m *GetClusterReply) String() string

func (*GetClusterReply) XXX_DiscardUnknown

func (m *GetClusterReply) XXX_DiscardUnknown()

func (*GetClusterReply) XXX_Marshal

func (m *GetClusterReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetClusterReply) XXX_Merge

func (dst *GetClusterReply) XXX_Merge(src proto.Message)

func (*GetClusterReply) XXX_Size

func (m *GetClusterReply) XXX_Size() int

func (*GetClusterReply) XXX_Unmarshal

func (m *GetClusterReply) XXX_Unmarshal(b []byte) error

type GetVersionMsg

type GetVersionMsg struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Get version of API Server

func (*GetVersionMsg) Descriptor

func (*GetVersionMsg) Descriptor() ([]byte, []int)

func (*GetVersionMsg) ProtoMessage

func (*GetVersionMsg) ProtoMessage()

func (*GetVersionMsg) Reset

func (m *GetVersionMsg) Reset()

func (*GetVersionMsg) String

func (m *GetVersionMsg) String() string

func (*GetVersionMsg) XXX_DiscardUnknown

func (m *GetVersionMsg) XXX_DiscardUnknown()

func (*GetVersionMsg) XXX_Marshal

func (m *GetVersionMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetVersionMsg) XXX_Merge

func (dst *GetVersionMsg) XXX_Merge(src proto.Message)

func (*GetVersionMsg) XXX_Size

func (m *GetVersionMsg) XXX_Size() int

func (*GetVersionMsg) XXX_Unmarshal

func (m *GetVersionMsg) XXX_Unmarshal(b []byte) error

type GetVersionReply

type GetVersionReply struct {
	// If operation was OK
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// Version Information
	VersionInformation   *GetVersionReply_VersionInformation `protobuf:"bytes,2,opt,name=version_information,json=versionInformation,proto3" json:"version_information,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

Reply for version request

func (*GetVersionReply) Descriptor

func (*GetVersionReply) Descriptor() ([]byte, []int)

func (*GetVersionReply) GetOk

func (m *GetVersionReply) GetOk() bool

func (*GetVersionReply) GetVersionInformation

func (m *GetVersionReply) GetVersionInformation() *GetVersionReply_VersionInformation

func (*GetVersionReply) ProtoMessage

func (*GetVersionReply) ProtoMessage()

func (*GetVersionReply) Reset

func (m *GetVersionReply) Reset()

func (*GetVersionReply) String

func (m *GetVersionReply) String() string

func (*GetVersionReply) XXX_DiscardUnknown

func (m *GetVersionReply) XXX_DiscardUnknown()

func (*GetVersionReply) XXX_Marshal

func (m *GetVersionReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetVersionReply) XXX_Merge

func (dst *GetVersionReply) XXX_Merge(src proto.Message)

func (*GetVersionReply) XXX_Size

func (m *GetVersionReply) XXX_Size() int

func (*GetVersionReply) XXX_Unmarshal

func (m *GetVersionReply) XXX_Unmarshal(b []byte) error

type GetVersionReply_VersionInformation

type GetVersionReply_VersionInformation struct {
	// The tag on the git repository
	GitVersion string `protobuf:"bytes,1,opt,name=git_version,json=gitVersion,proto3" json:"git_version,omitempty"`
	// The hash of the git commit
	GitCommit string `protobuf:"bytes,2,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"`
	// Whether or not the tree was clean when built
	GitTreeState string `protobuf:"bytes,3,opt,name=git_tree_state,json=gitTreeState,proto3" json:"git_tree_state,omitempty"`
	// Date of build
	BuildDate string `protobuf:"bytes,4,opt,name=build_date,json=buildDate,proto3" json:"build_date,omitempty"`
	// Version of go used to compile
	GoVersion string `protobuf:"bytes,5,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"`
	// Compiler used
	Compiler string `protobuf:"bytes,6,opt,name=compiler,proto3" json:"compiler,omitempty"`
	// Platform it was compiled for / running on
	Platform             string   `protobuf:"bytes,7,opt,name=platform,proto3" json:"platform,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetVersionReply_VersionInformation) Descriptor

func (*GetVersionReply_VersionInformation) Descriptor() ([]byte, []int)

func (*GetVersionReply_VersionInformation) GetBuildDate

func (m *GetVersionReply_VersionInformation) GetBuildDate() string

func (*GetVersionReply_VersionInformation) GetCompiler

func (m *GetVersionReply_VersionInformation) GetCompiler() string

func (*GetVersionReply_VersionInformation) GetGitCommit

func (m *GetVersionReply_VersionInformation) GetGitCommit() string

func (*GetVersionReply_VersionInformation) GetGitTreeState

func (m *GetVersionReply_VersionInformation) GetGitTreeState() string

func (*GetVersionReply_VersionInformation) GetGitVersion

func (m *GetVersionReply_VersionInformation) GetGitVersion() string

func (*GetVersionReply_VersionInformation) GetGoVersion

func (m *GetVersionReply_VersionInformation) GetGoVersion() string

func (*GetVersionReply_VersionInformation) GetPlatform

func (m *GetVersionReply_VersionInformation) GetPlatform() string

func (*GetVersionReply_VersionInformation) ProtoMessage

func (*GetVersionReply_VersionInformation) ProtoMessage()

func (*GetVersionReply_VersionInformation) Reset

func (*GetVersionReply_VersionInformation) String

func (*GetVersionReply_VersionInformation) XXX_DiscardUnknown

func (m *GetVersionReply_VersionInformation) XXX_DiscardUnknown()

func (*GetVersionReply_VersionInformation) XXX_Marshal

func (m *GetVersionReply_VersionInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetVersionReply_VersionInformation) XXX_Merge

func (dst *GetVersionReply_VersionInformation) XXX_Merge(src proto.Message)

func (*GetVersionReply_VersionInformation) XXX_Size

func (*GetVersionReply_VersionInformation) XXX_Unmarshal

func (m *GetVersionReply_VersionInformation) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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