Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterKubekitHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterKubekitHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KubekitClient) error
- func RegisterKubekitHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterKubekitHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KubekitServer) error
- func RegisterKubekitServer(s *grpc.Server, srv KubekitServer)
- type ApplyAction
- type ApplyRequest
- func (*ApplyRequest) Descriptor() ([]byte, []int)
- func (m *ApplyRequest) GetAction() ApplyAction
- func (m *ApplyRequest) GetApi() string
- func (m *ApplyRequest) GetCaCerts() map[string]string
- func (m *ApplyRequest) GetClusterName() string
- func (m *ApplyRequest) GetForcePackage() bool
- func (m *ApplyRequest) GetPackageUrl() string
- func (*ApplyRequest) ProtoMessage()
- func (m *ApplyRequest) Reset()
- func (m *ApplyRequest) String() string
- func (m *ApplyRequest) XXX_DiscardUnknown()
- func (m *ApplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplyRequest) XXX_Merge(src proto.Message)
- func (m *ApplyRequest) XXX_Size() int
- func (m *ApplyRequest) XXX_Unmarshal(b []byte) error
- type ApplyResponse
- func (*ApplyResponse) Descriptor() ([]byte, []int)
- func (m *ApplyResponse) GetApi() string
- func (m *ApplyResponse) GetStatus() string
- func (*ApplyResponse) ProtoMessage()
- func (m *ApplyResponse) Reset()
- func (m *ApplyResponse) String() string
- func (m *ApplyResponse) XXX_DiscardUnknown()
- func (m *ApplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplyResponse) XXX_Merge(src proto.Message)
- func (m *ApplyResponse) XXX_Size() int
- func (m *ApplyResponse) XXX_Unmarshal(b []byte) error
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)
- func (m *Cluster) GetName() string
- func (m *Cluster) GetNodes() int32
- func (m *Cluster) GetPlatform() PlatformName
- func (m *Cluster) GetStatus() Status
- func (*Cluster) ProtoMessage()
- func (m *Cluster) Reset()
- func (m *Cluster) String() string
- func (m *Cluster) XXX_DiscardUnknown()
- func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cluster) XXX_Merge(src proto.Message)
- func (m *Cluster) XXX_Size() int
- func (m *Cluster) XXX_Unmarshal(b []byte) error
- type ClusterConfig
- func (*ClusterConfig) Descriptor() ([]byte, []int)
- func (m *ClusterConfig) GetResources() []string
- func (m *ClusterConfig) GetVariables() map[string]string
- func (*ClusterConfig) ProtoMessage()
- func (m *ClusterConfig) Reset()
- func (m *ClusterConfig) String() string
- func (m *ClusterConfig) XXX_DiscardUnknown()
- func (m *ClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterConfig) XXX_Merge(src proto.Message)
- func (m *ClusterConfig) XXX_Size() int
- func (m *ClusterConfig) XXX_Unmarshal(b []byte) error
- type ClusterNodes
- func (*ClusterNodes) Descriptor() ([]byte, []int)
- func (m *ClusterNodes) GetNodePools() []*NodePool
- func (*ClusterNodes) ProtoMessage()
- func (m *ClusterNodes) Reset()
- func (m *ClusterNodes) String() string
- func (m *ClusterNodes) XXX_DiscardUnknown()
- func (m *ClusterNodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterNodes) XXX_Merge(src proto.Message)
- func (m *ClusterNodes) XXX_Size() int
- func (m *ClusterNodes) XXX_Unmarshal(b []byte) error
- type DeleteClusterConfigRequest
- func (*DeleteClusterConfigRequest) Descriptor() ([]byte, []int)
- func (m *DeleteClusterConfigRequest) GetApi() string
- func (m *DeleteClusterConfigRequest) GetClusterName() string
- func (*DeleteClusterConfigRequest) ProtoMessage()
- func (m *DeleteClusterConfigRequest) Reset()
- func (m *DeleteClusterConfigRequest) String() string
- func (m *DeleteClusterConfigRequest) XXX_DiscardUnknown()
- func (m *DeleteClusterConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteClusterConfigRequest) XXX_Merge(src proto.Message)
- func (m *DeleteClusterConfigRequest) XXX_Size() int
- func (m *DeleteClusterConfigRequest) XXX_Unmarshal(b []byte) error
- type DeleteClusterConfigResponse
- func (*DeleteClusterConfigResponse) Descriptor() ([]byte, []int)
- func (m *DeleteClusterConfigResponse) GetApi() string
- func (m *DeleteClusterConfigResponse) GetClusterName() string
- func (m *DeleteClusterConfigResponse) GetStatus() DeleteClusterConfigStatus
- func (*DeleteClusterConfigResponse) ProtoMessage()
- func (m *DeleteClusterConfigResponse) Reset()
- func (m *DeleteClusterConfigResponse) String() string
- func (m *DeleteClusterConfigResponse) XXX_DiscardUnknown()
- func (m *DeleteClusterConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteClusterConfigResponse) XXX_Merge(src proto.Message)
- func (m *DeleteClusterConfigResponse) XXX_Size() int
- func (m *DeleteClusterConfigResponse) XXX_Unmarshal(b []byte) error
- type DeleteClusterConfigStatus
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) GetApi() string
- func (m *DeleteRequest) GetClusterName() string
- func (m *DeleteRequest) GetDestroyAll() bool
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) String() string
- func (m *DeleteRequest) XXX_DiscardUnknown()
- func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRequest) XXX_Merge(src proto.Message)
- func (m *DeleteRequest) XXX_Size() int
- func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)
- func (m *DeleteResponse) GetApi() string
- func (m *DeleteResponse) GetStatus() string
- func (*DeleteResponse) ProtoMessage()
- func (m *DeleteResponse) Reset()
- func (m *DeleteResponse) String() string
- func (m *DeleteResponse) XXX_DiscardUnknown()
- func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteResponse) XXX_Merge(src proto.Message)
- func (m *DeleteResponse) XXX_Size() int
- func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
- type DescribeLevel
- type DescribeRequest
- func (*DescribeRequest) Descriptor() ([]byte, []int)
- func (m *DescribeRequest) GetApi() string
- func (m *DescribeRequest) GetClusterName() string
- func (m *DescribeRequest) GetShowParams() []string
- func (*DescribeRequest) ProtoMessage()
- func (m *DescribeRequest) Reset()
- func (m *DescribeRequest) String() string
- func (m *DescribeRequest) XXX_DiscardUnknown()
- func (m *DescribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DescribeRequest) XXX_Merge(src proto.Message)
- func (m *DescribeRequest) XXX_Size() int
- func (m *DescribeRequest) XXX_Unmarshal(b []byte) error
- type DescribeResponse
- func (*DescribeResponse) Descriptor() ([]byte, []int)
- func (m *DescribeResponse) GetApi() string
- func (m *DescribeResponse) GetCluster() *Cluster
- func (m *DescribeResponse) GetConfig() *ClusterConfig
- func (m *DescribeResponse) GetEntrypoint() string
- func (m *DescribeResponse) GetKubeconfig() string
- func (m *DescribeResponse) GetNodes() *ClusterNodes
- func (*DescribeResponse) ProtoMessage()
- func (m *DescribeResponse) Reset()
- func (m *DescribeResponse) String() string
- func (m *DescribeResponse) XXX_DiscardUnknown()
- func (m *DescribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DescribeResponse) XXX_Merge(src proto.Message)
- func (m *DescribeResponse) XXX_Size() int
- func (m *DescribeResponse) XXX_Unmarshal(b []byte) error
- type GetClustersRequest
- func (*GetClustersRequest) Descriptor() ([]byte, []int)
- func (m *GetClustersRequest) GetApi() string
- func (m *GetClustersRequest) GetFilter() []string
- func (m *GetClustersRequest) GetNames() []string
- func (*GetClustersRequest) ProtoMessage()
- func (m *GetClustersRequest) Reset()
- func (m *GetClustersRequest) String() string
- func (m *GetClustersRequest) XXX_DiscardUnknown()
- func (m *GetClustersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetClustersRequest) XXX_Merge(src proto.Message)
- func (m *GetClustersRequest) XXX_Size() int
- func (m *GetClustersRequest) XXX_Unmarshal(b []byte) error
- type GetClustersResponse
- func (*GetClustersResponse) Descriptor() ([]byte, []int)
- func (m *GetClustersResponse) GetApi() string
- func (m *GetClustersResponse) GetClusters() []*Cluster
- func (*GetClustersResponse) ProtoMessage()
- func (m *GetClustersResponse) Reset()
- func (m *GetClustersResponse) String() string
- func (m *GetClustersResponse) XXX_DiscardUnknown()
- func (m *GetClustersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetClustersResponse) XXX_Merge(src proto.Message)
- func (m *GetClustersResponse) XXX_Size() int
- func (m *GetClustersResponse) XXX_Unmarshal(b []byte) error
- type InitRequest
- func (*InitRequest) Descriptor() ([]byte, []int)
- func (m *InitRequest) GetApi() string
- func (m *InitRequest) GetClusterName() string
- func (m *InitRequest) GetCredentials() map[string]string
- func (m *InitRequest) GetKind() string
- func (m *InitRequest) GetPlatform() PlatformName
- func (m *InitRequest) GetResources() []string
- func (m *InitRequest) GetVariables() map[string]string
- func (*InitRequest) ProtoMessage()
- func (m *InitRequest) Reset()
- func (m *InitRequest) String() string
- func (m *InitRequest) XXX_DiscardUnknown()
- func (m *InitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InitRequest) XXX_Merge(src proto.Message)
- func (m *InitRequest) XXX_Size() int
- func (m *InitRequest) XXX_Unmarshal(b []byte) error
- type InitResponse
- func (*InitResponse) Descriptor() ([]byte, []int)
- func (m *InitResponse) GetApi() string
- func (m *InitResponse) GetKind() string
- func (m *InitResponse) GetName() string
- func (*InitResponse) ProtoMessage()
- func (m *InitResponse) Reset()
- func (m *InitResponse) String() string
- func (m *InitResponse) XXX_DiscardUnknown()
- func (m *InitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InitResponse) XXX_Merge(src proto.Message)
- func (m *InitResponse) XXX_Size() int
- func (m *InitResponse) XXX_Unmarshal(b []byte) error
- type KubekitClient
- type KubekitServer
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetName() string
- func (m *Node) GetOtherDns() []string
- func (m *Node) GetOtherIps() []string
- func (m *Node) GetPoolName() string
- func (m *Node) GetPrivateDns() string
- func (m *Node) GetPrivateIp() string
- func (m *Node) GetPublicDns() string
- func (m *Node) GetPublicIp() string
- func (m *Node) GetRoleName() string
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) String() string
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type NodePool
- func (*NodePool) Descriptor() ([]byte, []int)
- func (m *NodePool) GetNodes() []*Node
- func (m *NodePool) GetPoolName() string
- func (*NodePool) ProtoMessage()
- func (m *NodePool) Reset()
- func (m *NodePool) String() string
- func (m *NodePool) XXX_DiscardUnknown()
- func (m *NodePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodePool) XXX_Merge(src proto.Message)
- func (m *NodePool) XXX_Size() int
- func (m *NodePool) XXX_Unmarshal(b []byte) error
- type PlatformName
- type Status
- type TokenRequest
- func (*TokenRequest) Descriptor() ([]byte, []int)
- func (m *TokenRequest) GetApi() string
- func (m *TokenRequest) GetClusterName() string
- func (m *TokenRequest) GetRole() string
- func (*TokenRequest) ProtoMessage()
- func (m *TokenRequest) Reset()
- func (m *TokenRequest) String() string
- func (m *TokenRequest) XXX_DiscardUnknown()
- func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenRequest) XXX_Merge(src proto.Message)
- func (m *TokenRequest) XXX_Size() int
- func (m *TokenRequest) XXX_Unmarshal(b []byte) error
- type TokenResponse
- func (*TokenResponse) Descriptor() ([]byte, []int)
- func (m *TokenResponse) GetApiVersion() string
- func (m *TokenResponse) GetKind() string
- func (m *TokenResponse) GetSpec() *_struct.Struct
- func (m *TokenResponse) GetStatus() *TokenStatus
- func (*TokenResponse) ProtoMessage()
- func (m *TokenResponse) Reset()
- func (m *TokenResponse) String() string
- func (m *TokenResponse) XXX_DiscardUnknown()
- func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenResponse) XXX_Merge(src proto.Message)
- func (m *TokenResponse) XXX_Size() int
- func (m *TokenResponse) XXX_Unmarshal(b []byte) error
- type TokenStatus
- func (*TokenStatus) Descriptor() ([]byte, []int)
- func (m *TokenStatus) GetExpirationTimestamp() *timestamp.Timestamp
- func (m *TokenStatus) GetToken() string
- func (*TokenStatus) ProtoMessage()
- func (m *TokenStatus) Reset()
- func (m *TokenStatus) String() string
- func (m *TokenStatus) XXX_DiscardUnknown()
- func (m *TokenStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenStatus) XXX_Merge(src proto.Message)
- func (m *TokenStatus) XXX_Size() int
- func (m *TokenStatus) XXX_Unmarshal(b []byte) error
- type UnimplementedKubekitServer
- func (*UnimplementedKubekitServer) Apply(ctx context.Context, req *ApplyRequest) (*ApplyResponse, error)
- func (*UnimplementedKubekitServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
- func (*UnimplementedKubekitServer) DeleteClusterConfig(ctx context.Context, req *DeleteClusterConfigRequest) (*DeleteClusterConfigResponse, error)
- func (*UnimplementedKubekitServer) Describe(ctx context.Context, req *DescribeRequest) (*DescribeResponse, error)
- func (*UnimplementedKubekitServer) GetClusters(ctx context.Context, req *GetClustersRequest) (*GetClustersResponse, error)
- func (*UnimplementedKubekitServer) Init(ctx context.Context, req *InitRequest) (*InitResponse, error)
- func (*UnimplementedKubekitServer) Token(ctx context.Context, req *TokenRequest) (*TokenResponse, error)
- func (*UnimplementedKubekitServer) UpdateCluster(ctx context.Context, req *UpdateClusterRequest) (*UpdateClusterResponse, error)
- func (*UnimplementedKubekitServer) Version(ctx context.Context, req *VersionRequest) (*VersionResponse, error)
- type UpdateClusterRequest
- func (*UpdateClusterRequest) Descriptor() ([]byte, []int)
- func (m *UpdateClusterRequest) GetApi() string
- func (m *UpdateClusterRequest) GetClusterName() string
- func (m *UpdateClusterRequest) GetCredentials() map[string]string
- func (m *UpdateClusterRequest) GetKind() string
- func (m *UpdateClusterRequest) GetResources() []string
- func (m *UpdateClusterRequest) GetVariables() map[string]string
- func (*UpdateClusterRequest) ProtoMessage()
- func (m *UpdateClusterRequest) Reset()
- func (m *UpdateClusterRequest) String() string
- func (m *UpdateClusterRequest) XXX_DiscardUnknown()
- func (m *UpdateClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateClusterRequest) XXX_Merge(src proto.Message)
- func (m *UpdateClusterRequest) XXX_Size() int
- func (m *UpdateClusterRequest) XXX_Unmarshal(b []byte) error
- type UpdateClusterResponse
- func (*UpdateClusterResponse) Descriptor() ([]byte, []int)
- func (m *UpdateClusterResponse) GetApi() string
- func (*UpdateClusterResponse) ProtoMessage()
- func (m *UpdateClusterResponse) Reset()
- func (m *UpdateClusterResponse) String() string
- func (m *UpdateClusterResponse) XXX_DiscardUnknown()
- func (m *UpdateClusterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateClusterResponse) XXX_Merge(src proto.Message)
- func (m *UpdateClusterResponse) XXX_Size() int
- func (m *UpdateClusterResponse) XXX_Unmarshal(b []byte) error
- type VersionRequest
- func (*VersionRequest) Descriptor() ([]byte, []int)
- func (m *VersionRequest) GetApi() string
- func (*VersionRequest) ProtoMessage()
- func (m *VersionRequest) Reset()
- func (m *VersionRequest) String() string
- func (m *VersionRequest) XXX_DiscardUnknown()
- func (m *VersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VersionRequest) XXX_Merge(src proto.Message)
- func (m *VersionRequest) XXX_Size() int
- func (m *VersionRequest) XXX_Unmarshal(b []byte) error
- type VersionResponse
- func (*VersionResponse) Descriptor() ([]byte, []int)
- func (m *VersionResponse) GetApi() string
- func (m *VersionResponse) GetDocker() string
- func (m *VersionResponse) GetEtcd() string
- func (m *VersionResponse) GetKubekit() string
- func (m *VersionResponse) GetKubernetes() string
- func (*VersionResponse) ProtoMessage()
- func (m *VersionResponse) Reset()
- func (m *VersionResponse) String() string
- func (m *VersionResponse) XXX_DiscardUnknown()
- func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VersionResponse) XXX_Merge(src proto.Message)
- func (m *VersionResponse) XXX_Size() int
- func (m *VersionResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ApplyAction_name = map[int32]string{
0: "ALL",
1: "PROVISION",
2: "CONFIGURE",
}
var ApplyAction_value = map[string]int32{
"ALL": 0,
"PROVISION": 1,
"CONFIGURE": 2,
}
var DeleteClusterConfigStatus_name = map[int32]string{
0: "DELETED",
1: "NOT_FOUND",
}
var DeleteClusterConfigStatus_value = map[string]int32{
"DELETED": 0,
"NOT_FOUND": 1,
}
var DescribeLevel_name = map[int32]string{
0: "BASIC",
1: "EVERYTHING",
2: "CONFIG",
3: "NODES",
}
var DescribeLevel_value = map[string]int32{
"BASIC": 0,
"EVERYTHING": 1,
"CONFIG": 2,
"NODES": 3,
}
var PlatformName_name = map[int32]string{
0: "UNKNOWN",
1: "AWS",
2: "EKS",
3: "AZURE",
4: "AKS",
5: "OPENSTACK",
6: "VSPHERE",
7: "VRA",
8: "STACKI",
9: "RAW",
}
var PlatformName_value = map[string]int32{
"UNKNOWN": 0,
"AWS": 1,
"EKS": 2,
"AZURE": 3,
"AKS": 4,
"OPENSTACK": 5,
"VSPHERE": 6,
"VRA": 7,
"STACKI": 8,
"RAW": 9,
}
var Status_name = map[int32]string{
0: "UNKNOWN_STATUS",
1: "ABSENT",
2: "CREATING",
3: "PROVISIONED",
4: "FAILED_PROVISIONING",
5: "FAILED_CONFIGURATION",
6: "CREATED",
7: "FAILED_CREATION",
8: "RUNNING",
9: "STOPPED",
10: "TERMINATING",
11: "TERMINATED",
12: "FAILED_TERMINATION",
}
var Status_value = map[string]int32{
"UNKNOWN_STATUS": 0,
"ABSENT": 1,
"CREATING": 2,
"PROVISIONED": 3,
"FAILED_PROVISIONING": 4,
"FAILED_CONFIGURATION": 5,
"CREATED": 6,
"FAILED_CREATION": 7,
"RUNNING": 8,
"STOPPED": 9,
"TERMINATING": 10,
"TERMINATED": 11,
"FAILED_TERMINATION": 12,
}
var Swagger = []byte(`
{
"swagger": "2.0",
"info": {
"title": "KubeKit Service",
"version": "1.0",
"contact": {
"name": "KubeKit",
"url": "https://kubekit.dev/",
"email": "team@kubekit.dev"
}
},
"schemes": [
"http",
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/api/v1/cluster": {
"get": {
"operationId": "GetClusters",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1GetClustersResponse"
}
},
"400": {
"description": "Returned when a request is invalid or missing parameters",
"schema": {}
},
"404": {
"description": "Returned when the resource does not exist.",
"schema": {
"type": "string",
"format": "string"
}
}
},
"parameters": [
{
"name": "api",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "names",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
},
{
"name": "filter",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
"Kubekit"
]
},
"post": {
"operationId": "Init",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1InitResponse"
}
},
"400": {
"description": "Returned when a request is invalid or missing parameters",
"schema": {}
},
"404": {
"description": "Returned when the resource does not exist.",
"schema": {
"type": "string",
"format": "string"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1InitRequest"
}
}
],
"tags": [
"Kubekit"
]
}
},
"/api/v1/cluster/{cluster_name}": {
"get": {
"operationId": "Describe",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1DescribeResponse"
}
},
"400": {
"description": "Returned when a request is invalid or missing parameters",
"schema": {}
},
"404": {
"description": "Returned when the resource does not exist.",
"schema": {
"type": "string",
"format": "string"
}
}
},
"parameters": [
{
"name": "cluster_name",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "api",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "show_params",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
"Kubekit"
]
},
"delete": {
"operationId": "Delete",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1DeleteResponse"
}
},
"400": {
"description": "Returned when a request is invalid or missing parameters",
"schema": {}
},
"404": {
"description": "Returned when the resource does not exist.",
"schema": {
"type": "string",
"format": "string"
}
}
},
"parameters": [
{
"name": "cluster_name",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "api",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "destroy_all",
"in": "query",
"required": false,
"type": "boolean",
"format": "boolean"
}
],
"tags": [
"Kubekit"
]
},
"post": {
"operationId": "Apply",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1ApplyResponse"
}
},
"400": {
"description": "Returned when a request is invalid or missing parameters",
"schema": {}
},
"404": {
"description": "Returned when the resource does not exist.",
"schema": {
"type": "string",
"format": "string"
}
}
},
"parameters": [
{
"name": "cluster_name",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1ApplyRequest"
}
}
],
"tags": [
"Kubekit"
]
},
"put": {
"operationId": "UpdateCluster",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1UpdateClusterResponse"
}
},
"400": {
"description": "Returned when a request is invalid or missing parameters",
"schema": {}
},
"404": {
"description": "Returned when the resource does not exist.",
"schema": {
"type": "string",
"format": "string"
}
}
},
"parameters": [
{
"name": "cluster_name",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1UpdateClusterRequest"
}
}
],
"tags": [
"Kubekit"
]
}
},
"/api/v1/cluster/{cluster_name}/config": {
"delete": {
"operationId": "DeleteClusterConfig",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1DeleteClusterConfigResponse"
}
},
"400": {
"description": "Returned when a request is invalid or missing parameters",
"schema": {}
},
"404": {
"description": "Returned when the resource does not exist.",
"schema": {
"type": "string",
"format": "string"
}
}
},
"parameters": [
{
"name": "cluster_name",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "api",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"Kubekit"
]
}
},
"/api/v1/cluster/{cluster_name}/token": {
"get": {
"operationId": "Token",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1TokenResponse"
}
},
"400": {
"description": "Returned when a request is invalid or missing parameters",
"schema": {}
},
"404": {
"description": "Returned when the resource does not exist.",
"schema": {
"type": "string",
"format": "string"
}
}
},
"parameters": [
{
"name": "cluster_name",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "api",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "role",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"Kubekit"
]
}
},
"/api/v1/version": {
"get": {
"operationId": "Version",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1VersionResponse"
}
},
"400": {
"description": "Returned when a request is invalid or missing parameters",
"schema": {}
},
"404": {
"description": "Returned when the resource does not exist.",
"schema": {
"type": "string",
"format": "string"
}
}
},
"parameters": [
{
"name": "api",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"Kubekit"
]
}
}
},
"definitions": {
"protobufNullValue": {
"type": "string",
"enum": [
"NULL_VALUE"
],
"default": "NULL_VALUE",
"description": "` + "`" + `NullValue` + "`" + ` is a singleton enumeration to represent the null value for the\n` + "`" + `Value` + "`" + ` type union.\n\n The JSON representation for ` + "`" + `NullValue` + "`" + ` is JSON ` + "`" + `null` + "`" + `.\n\n - NULL_VALUE: Null value."
},
"v1ApplyAction": {
"type": "string",
"enum": [
"ALL",
"PROVISION",
"CONFIGURE"
],
"default": "ALL"
},
"v1ApplyRequest": {
"type": "object",
"properties": {
"api": {
"type": "string"
},
"cluster_name": {
"type": "string"
},
"action": {
"$ref": "#/definitions/v1ApplyAction"
},
"package_url": {
"type": "string"
},
"force_package": {
"type": "boolean",
"format": "boolean"
},
"ca_certs": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"v1ApplyResponse": {
"type": "object",
"properties": {
"api": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"v1Cluster": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"platform": {
"$ref": "#/definitions/v1PlatformName"
},
"nodes": {
"type": "integer",
"format": "int32"
},
"status": {
"$ref": "#/definitions/v1Status"
}
}
},
"v1ClusterConfig": {
"type": "object",
"properties": {
"variables": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"resources": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1ClusterNodes": {
"type": "object",
"properties": {
"node_pools": {
"type": "array",
"items": {
"$ref": "#/definitions/v1NodePool"
}
}
}
},
"v1DeleteClusterConfigResponse": {
"type": "object",
"properties": {
"api": {
"type": "string"
},
"cluster_name": {
"type": "string"
},
"status": {
"$ref": "#/definitions/v1DeleteClusterConfigStatus"
}
}
},
"v1DeleteClusterConfigStatus": {
"type": "string",
"enum": [
"DELETED",
"NOT_FOUND"
],
"default": "DELETED"
},
"v1DeleteResponse": {
"type": "object",
"properties": {
"api": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"v1DescribeResponse": {
"type": "object",
"properties": {
"api": {
"type": "string"
},
"cluster": {
"$ref": "#/definitions/v1Cluster"
},
"entrypoint": {
"type": "string"
},
"config": {
"$ref": "#/definitions/v1ClusterConfig"
},
"nodes": {
"$ref": "#/definitions/v1ClusterNodes"
},
"kubeconfig": {
"type": "string"
}
}
},
"v1GetClustersResponse": {
"type": "object",
"properties": {
"api": {
"type": "string"
},
"clusters": {
"type": "array",
"items": {
"$ref": "#/definitions/v1Cluster"
}
}
}
},
"v1InitRequest": {
"type": "object",
"properties": {
"api": {
"type": "string"
},
"kind": {
"type": "string"
},
"cluster_name": {
"type": "string"
},
"platform": {
"$ref": "#/definitions/v1PlatformName"
},
"variables": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"credentials": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"resources": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1InitResponse": {
"type": "object",
"properties": {
"api": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"v1Node": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"pool_name": {
"type": "string"
},
"role_name": {
"type": "string"
},
"public_ip": {
"type": "string"
},
"private_ip": {
"type": "string"
},
"other_ips": {
"type": "array",
"items": {
"type": "string"
}
},
"public_dns": {
"type": "string"
},
"private_dns": {
"type": "string"
},
"other_dns": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1NodePool": {
"type": "object",
"properties": {
"pool_name": {
"type": "string"
},
"nodes": {
"type": "array",
"items": {
"$ref": "#/definitions/v1Node"
}
}
}
},
"v1PlatformName": {
"type": "string",
"enum": [
"UNKNOWN",
"AWS",
"EKS",
"AZURE",
"AKS",
"OPENSTACK",
"VSPHERE",
"VRA",
"STACKI",
"RAW"
],
"default": "UNKNOWN"
},
"v1Status": {
"type": "string",
"enum": [
"UNKNOWN_STATUS",
"ABSENT",
"CREATING",
"PROVISIONED",
"FAILED_PROVISIONING",
"FAILED_CONFIGURATION",
"CREATED",
"FAILED_CREATION",
"RUNNING",
"STOPPED",
"TERMINATING",
"TERMINATED",
"FAILED_TERMINATION"
],
"default": "UNKNOWN_STATUS"
},
"v1TokenResponse": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"apiVersion": {
"type": "string"
},
"spec": {
"type": "object"
},
"status": {
"$ref": "#/definitions/v1TokenStatus"
}
}
},
"v1TokenStatus": {
"type": "object",
"properties": {
"expirationTimestamp": {
"type": "string",
"format": "date-time"
},
"token": {
"type": "string"
}
}
},
"v1UpdateClusterRequest": {
"type": "object",
"properties": {
"api": {
"type": "string"
},
"kind": {
"type": "string"
},
"cluster_name": {
"type": "string"
},
"variables": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"credentials": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"resources": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1UpdateClusterResponse": {
"type": "object",
"properties": {
"api": {
"type": "string"
}
}
},
"v1VersionResponse": {
"type": "object",
"properties": {
"api": {
"type": "string"
},
"kubekit": {
"type": "string"
},
"kubernetes": {
"type": "string"
},
"docker": {
"type": "string"
},
"etcd": {
"type": "string"
}
}
}
},
"externalDocs": {
"description": "KubeKit Development - Slack",
"url": "slack://channel?team=TQN0L5ZU1\u0026id=CQY6PKLDD"
}
}
`)
Functions ¶
func RegisterKubekitHandler ¶
func RegisterKubekitHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterKubekitHandler registers the http handlers for service Kubekit to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterKubekitHandlerClient ¶
func RegisterKubekitHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KubekitClient) error
RegisterKubekitHandlerClient registers the http handlers for service Kubekit to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "KubekitClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "KubekitClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "KubekitClient" to call the correct interceptors.
func RegisterKubekitHandlerFromEndpoint ¶
func RegisterKubekitHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterKubekitHandlerFromEndpoint is same as RegisterKubekitHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterKubekitHandlerServer ¶
func RegisterKubekitHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KubekitServer) error
RegisterKubekitHandlerServer registers the http handlers for service Kubekit to "mux". UnaryRPC :call KubekitServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterKubekitServer ¶
func RegisterKubekitServer(s *grpc.Server, srv KubekitServer)
Types ¶
type ApplyAction ¶
type ApplyAction int32
const ( ApplyAction_ALL ApplyAction = 0 ApplyAction_PROVISION ApplyAction = 1 ApplyAction_CONFIGURE ApplyAction = 2 )
func (ApplyAction) EnumDescriptor ¶
func (ApplyAction) EnumDescriptor() ([]byte, []int)
func (ApplyAction) String ¶
func (x ApplyAction) String() string
type ApplyRequest ¶
type ApplyRequest struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` Action ApplyAction `protobuf:"varint,3,opt,name=action,proto3,enum=kubekit.v1.ApplyAction" json:"action,omitempty"` PackageUrl string `protobuf:"bytes,4,opt,name=package_url,json=packageUrl,proto3" json:"package_url,omitempty"` ForcePackage bool `protobuf:"varint,5,opt,name=force_package,json=forcePackage,proto3" json:"force_package,omitempty"` CaCerts map[string]string `` /* 170-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ApplyRequest) Descriptor ¶
func (*ApplyRequest) Descriptor() ([]byte, []int)
func (*ApplyRequest) GetAction ¶
func (m *ApplyRequest) GetAction() ApplyAction
func (*ApplyRequest) GetApi ¶
func (m *ApplyRequest) GetApi() string
func (*ApplyRequest) GetCaCerts ¶
func (m *ApplyRequest) GetCaCerts() map[string]string
func (*ApplyRequest) GetClusterName ¶
func (m *ApplyRequest) GetClusterName() string
func (*ApplyRequest) GetForcePackage ¶
func (m *ApplyRequest) GetForcePackage() bool
func (*ApplyRequest) GetPackageUrl ¶
func (m *ApplyRequest) GetPackageUrl() string
func (*ApplyRequest) ProtoMessage ¶
func (*ApplyRequest) ProtoMessage()
func (*ApplyRequest) Reset ¶
func (m *ApplyRequest) Reset()
func (*ApplyRequest) String ¶
func (m *ApplyRequest) String() string
func (*ApplyRequest) XXX_DiscardUnknown ¶
func (m *ApplyRequest) XXX_DiscardUnknown()
func (*ApplyRequest) XXX_Marshal ¶
func (m *ApplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplyRequest) XXX_Merge ¶
func (m *ApplyRequest) XXX_Merge(src proto.Message)
func (*ApplyRequest) XXX_Size ¶
func (m *ApplyRequest) XXX_Size() int
func (*ApplyRequest) XXX_Unmarshal ¶
func (m *ApplyRequest) XXX_Unmarshal(b []byte) error
type ApplyResponse ¶
type ApplyResponse struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` 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 (*ApplyResponse) Descriptor ¶
func (*ApplyResponse) Descriptor() ([]byte, []int)
func (*ApplyResponse) GetApi ¶
func (m *ApplyResponse) GetApi() string
func (*ApplyResponse) GetStatus ¶
func (m *ApplyResponse) GetStatus() string
func (*ApplyResponse) ProtoMessage ¶
func (*ApplyResponse) ProtoMessage()
func (*ApplyResponse) Reset ¶
func (m *ApplyResponse) Reset()
func (*ApplyResponse) String ¶
func (m *ApplyResponse) String() string
func (*ApplyResponse) XXX_DiscardUnknown ¶
func (m *ApplyResponse) XXX_DiscardUnknown()
func (*ApplyResponse) XXX_Marshal ¶
func (m *ApplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplyResponse) XXX_Merge ¶
func (m *ApplyResponse) XXX_Merge(src proto.Message)
func (*ApplyResponse) XXX_Size ¶
func (m *ApplyResponse) XXX_Size() int
func (*ApplyResponse) XXX_Unmarshal ¶
func (m *ApplyResponse) XXX_Unmarshal(b []byte) error
type Cluster ¶
type Cluster struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Platform PlatformName `protobuf:"varint,4,opt,name=platform,proto3,enum=kubekit.v1.PlatformName" json:"platform,omitempty"` Nodes int32 `protobuf:"varint,5,opt,name=nodes,proto3" json:"nodes,omitempty"` Status Status `protobuf:"varint,6,opt,name=status,proto3,enum=kubekit.v1.Status" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cluster) Descriptor ¶
func (*Cluster) GetPlatform ¶
func (m *Cluster) GetPlatform() PlatformName
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) XXX_DiscardUnknown ¶
func (m *Cluster) XXX_DiscardUnknown()
func (*Cluster) XXX_Marshal ¶
func (*Cluster) XXX_Unmarshal ¶
type ClusterConfig ¶
type ClusterConfig struct { Variables map[string]string `` /* 159-byte string literal not displayed */ Resources []string `protobuf:"bytes,6,rep,name=resources,proto3" json:"resources,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClusterConfig) Descriptor ¶
func (*ClusterConfig) Descriptor() ([]byte, []int)
func (*ClusterConfig) GetResources ¶
func (m *ClusterConfig) GetResources() []string
func (*ClusterConfig) GetVariables ¶
func (m *ClusterConfig) GetVariables() map[string]string
func (*ClusterConfig) ProtoMessage ¶
func (*ClusterConfig) ProtoMessage()
func (*ClusterConfig) Reset ¶
func (m *ClusterConfig) Reset()
func (*ClusterConfig) String ¶
func (m *ClusterConfig) String() string
func (*ClusterConfig) XXX_DiscardUnknown ¶
func (m *ClusterConfig) XXX_DiscardUnknown()
func (*ClusterConfig) XXX_Marshal ¶
func (m *ClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterConfig) XXX_Merge ¶
func (m *ClusterConfig) XXX_Merge(src proto.Message)
func (*ClusterConfig) XXX_Size ¶
func (m *ClusterConfig) XXX_Size() int
func (*ClusterConfig) XXX_Unmarshal ¶
func (m *ClusterConfig) XXX_Unmarshal(b []byte) error
type ClusterNodes ¶
type ClusterNodes struct { NodePools []*NodePool `protobuf:"bytes,1,rep,name=node_pools,json=nodePools,proto3" json:"node_pools,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClusterNodes) Descriptor ¶
func (*ClusterNodes) Descriptor() ([]byte, []int)
func (*ClusterNodes) GetNodePools ¶
func (m *ClusterNodes) GetNodePools() []*NodePool
func (*ClusterNodes) ProtoMessage ¶
func (*ClusterNodes) ProtoMessage()
func (*ClusterNodes) Reset ¶
func (m *ClusterNodes) Reset()
func (*ClusterNodes) String ¶
func (m *ClusterNodes) String() string
func (*ClusterNodes) XXX_DiscardUnknown ¶
func (m *ClusterNodes) XXX_DiscardUnknown()
func (*ClusterNodes) XXX_Marshal ¶
func (m *ClusterNodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterNodes) XXX_Merge ¶
func (m *ClusterNodes) XXX_Merge(src proto.Message)
func (*ClusterNodes) XXX_Size ¶
func (m *ClusterNodes) XXX_Size() int
func (*ClusterNodes) XXX_Unmarshal ¶
func (m *ClusterNodes) XXX_Unmarshal(b []byte) error
type DeleteClusterConfigRequest ¶
type DeleteClusterConfigRequest struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteClusterConfigRequest) Descriptor ¶
func (*DeleteClusterConfigRequest) Descriptor() ([]byte, []int)
func (*DeleteClusterConfigRequest) GetApi ¶
func (m *DeleteClusterConfigRequest) GetApi() string
func (*DeleteClusterConfigRequest) GetClusterName ¶
func (m *DeleteClusterConfigRequest) GetClusterName() string
func (*DeleteClusterConfigRequest) ProtoMessage ¶
func (*DeleteClusterConfigRequest) ProtoMessage()
func (*DeleteClusterConfigRequest) Reset ¶
func (m *DeleteClusterConfigRequest) Reset()
func (*DeleteClusterConfigRequest) String ¶
func (m *DeleteClusterConfigRequest) String() string
func (*DeleteClusterConfigRequest) XXX_DiscardUnknown ¶
func (m *DeleteClusterConfigRequest) XXX_DiscardUnknown()
func (*DeleteClusterConfigRequest) XXX_Marshal ¶
func (m *DeleteClusterConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteClusterConfigRequest) XXX_Merge ¶
func (m *DeleteClusterConfigRequest) XXX_Merge(src proto.Message)
func (*DeleteClusterConfigRequest) XXX_Size ¶
func (m *DeleteClusterConfigRequest) XXX_Size() int
func (*DeleteClusterConfigRequest) XXX_Unmarshal ¶
func (m *DeleteClusterConfigRequest) XXX_Unmarshal(b []byte) error
type DeleteClusterConfigResponse ¶
type DeleteClusterConfigResponse struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` Status DeleteClusterConfigStatus `protobuf:"varint,3,opt,name=status,proto3,enum=kubekit.v1.DeleteClusterConfigStatus" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteClusterConfigResponse) Descriptor ¶
func (*DeleteClusterConfigResponse) Descriptor() ([]byte, []int)
func (*DeleteClusterConfigResponse) GetApi ¶
func (m *DeleteClusterConfigResponse) GetApi() string
func (*DeleteClusterConfigResponse) GetClusterName ¶
func (m *DeleteClusterConfigResponse) GetClusterName() string
func (*DeleteClusterConfigResponse) GetStatus ¶
func (m *DeleteClusterConfigResponse) GetStatus() DeleteClusterConfigStatus
func (*DeleteClusterConfigResponse) ProtoMessage ¶
func (*DeleteClusterConfigResponse) ProtoMessage()
func (*DeleteClusterConfigResponse) Reset ¶
func (m *DeleteClusterConfigResponse) Reset()
func (*DeleteClusterConfigResponse) String ¶
func (m *DeleteClusterConfigResponse) String() string
func (*DeleteClusterConfigResponse) XXX_DiscardUnknown ¶
func (m *DeleteClusterConfigResponse) XXX_DiscardUnknown()
func (*DeleteClusterConfigResponse) XXX_Marshal ¶
func (m *DeleteClusterConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteClusterConfigResponse) XXX_Merge ¶
func (m *DeleteClusterConfigResponse) XXX_Merge(src proto.Message)
func (*DeleteClusterConfigResponse) XXX_Size ¶
func (m *DeleteClusterConfigResponse) XXX_Size() int
func (*DeleteClusterConfigResponse) XXX_Unmarshal ¶
func (m *DeleteClusterConfigResponse) XXX_Unmarshal(b []byte) error
type DeleteClusterConfigStatus ¶
type DeleteClusterConfigStatus int32
const ( DeleteClusterConfigStatus_DELETED DeleteClusterConfigStatus = 0 DeleteClusterConfigStatus_NOT_FOUND DeleteClusterConfigStatus = 1 )
func (DeleteClusterConfigStatus) EnumDescriptor ¶
func (DeleteClusterConfigStatus) EnumDescriptor() ([]byte, []int)
func (DeleteClusterConfigStatus) String ¶
func (x DeleteClusterConfigStatus) String() string
type DeleteRequest ¶
type DeleteRequest struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` DestroyAll bool `protobuf:"varint,3,opt,name=destroy_all,json=destroyAll,proto3" json:"destroy_all,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetApi ¶
func (m *DeleteRequest) GetApi() string
func (*DeleteRequest) GetClusterName ¶
func (m *DeleteRequest) GetClusterName() string
func (*DeleteRequest) GetDestroyAll ¶
func (m *DeleteRequest) GetDestroyAll() bool
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
func (*DeleteRequest) XXX_DiscardUnknown ¶
func (m *DeleteRequest) XXX_DiscardUnknown()
func (*DeleteRequest) XXX_Marshal ¶
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRequest) XXX_Merge ¶
func (m *DeleteRequest) XXX_Merge(src proto.Message)
func (*DeleteRequest) XXX_Size ¶
func (m *DeleteRequest) XXX_Size() int
func (*DeleteRequest) XXX_Unmarshal ¶
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
type DeleteResponse ¶
type DeleteResponse struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` 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 (*DeleteResponse) Descriptor ¶
func (*DeleteResponse) Descriptor() ([]byte, []int)
func (*DeleteResponse) GetApi ¶
func (m *DeleteResponse) GetApi() string
func (*DeleteResponse) GetStatus ¶
func (m *DeleteResponse) GetStatus() string
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) Reset ¶
func (m *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (m *DeleteResponse) String() string
func (*DeleteResponse) XXX_DiscardUnknown ¶
func (m *DeleteResponse) XXX_DiscardUnknown()
func (*DeleteResponse) XXX_Marshal ¶
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteResponse) XXX_Merge ¶
func (m *DeleteResponse) XXX_Merge(src proto.Message)
func (*DeleteResponse) XXX_Size ¶
func (m *DeleteResponse) XXX_Size() int
func (*DeleteResponse) XXX_Unmarshal ¶
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
type DescribeLevel ¶
type DescribeLevel int32
const ( DescribeLevel_BASIC DescribeLevel = 0 DescribeLevel_EVERYTHING DescribeLevel = 1 DescribeLevel_CONFIG DescribeLevel = 2 DescribeLevel_NODES DescribeLevel = 3 )
func (DescribeLevel) EnumDescriptor ¶
func (DescribeLevel) EnumDescriptor() ([]byte, []int)
func (DescribeLevel) String ¶
func (x DescribeLevel) String() string
type DescribeRequest ¶
type DescribeRequest struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` ShowParams []string `protobuf:"bytes,3,rep,name=show_params,json=showParams,proto3" json:"show_params,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DescribeRequest) Descriptor ¶
func (*DescribeRequest) Descriptor() ([]byte, []int)
func (*DescribeRequest) GetApi ¶
func (m *DescribeRequest) GetApi() string
func (*DescribeRequest) GetClusterName ¶
func (m *DescribeRequest) GetClusterName() string
func (*DescribeRequest) GetShowParams ¶
func (m *DescribeRequest) GetShowParams() []string
func (*DescribeRequest) ProtoMessage ¶
func (*DescribeRequest) ProtoMessage()
func (*DescribeRequest) Reset ¶
func (m *DescribeRequest) Reset()
func (*DescribeRequest) String ¶
func (m *DescribeRequest) String() string
func (*DescribeRequest) XXX_DiscardUnknown ¶
func (m *DescribeRequest) XXX_DiscardUnknown()
func (*DescribeRequest) XXX_Marshal ¶
func (m *DescribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DescribeRequest) XXX_Merge ¶
func (m *DescribeRequest) XXX_Merge(src proto.Message)
func (*DescribeRequest) XXX_Size ¶
func (m *DescribeRequest) XXX_Size() int
func (*DescribeRequest) XXX_Unmarshal ¶
func (m *DescribeRequest) XXX_Unmarshal(b []byte) error
type DescribeResponse ¶
type DescribeResponse struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Cluster *Cluster `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"` Entrypoint string `protobuf:"bytes,3,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"` Config *ClusterConfig `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` Nodes *ClusterNodes `protobuf:"bytes,5,opt,name=nodes,proto3" json:"nodes,omitempty"` Kubeconfig string `protobuf:"bytes,6,opt,name=kubeconfig,proto3" json:"kubeconfig,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DescribeResponse) Descriptor ¶
func (*DescribeResponse) Descriptor() ([]byte, []int)
func (*DescribeResponse) GetApi ¶
func (m *DescribeResponse) GetApi() string
func (*DescribeResponse) GetCluster ¶
func (m *DescribeResponse) GetCluster() *Cluster
func (*DescribeResponse) GetConfig ¶
func (m *DescribeResponse) GetConfig() *ClusterConfig
func (*DescribeResponse) GetEntrypoint ¶
func (m *DescribeResponse) GetEntrypoint() string
func (*DescribeResponse) GetKubeconfig ¶
func (m *DescribeResponse) GetKubeconfig() string
func (*DescribeResponse) GetNodes ¶
func (m *DescribeResponse) GetNodes() *ClusterNodes
func (*DescribeResponse) ProtoMessage ¶
func (*DescribeResponse) ProtoMessage()
func (*DescribeResponse) Reset ¶
func (m *DescribeResponse) Reset()
func (*DescribeResponse) String ¶
func (m *DescribeResponse) String() string
func (*DescribeResponse) XXX_DiscardUnknown ¶
func (m *DescribeResponse) XXX_DiscardUnknown()
func (*DescribeResponse) XXX_Marshal ¶
func (m *DescribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DescribeResponse) XXX_Merge ¶
func (m *DescribeResponse) XXX_Merge(src proto.Message)
func (*DescribeResponse) XXX_Size ¶
func (m *DescribeResponse) XXX_Size() int
func (*DescribeResponse) XXX_Unmarshal ¶
func (m *DescribeResponse) XXX_Unmarshal(b []byte) error
type GetClustersRequest ¶
type GetClustersRequest struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` Filter []string `protobuf:"bytes,4,rep,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetClustersRequest) Descriptor ¶
func (*GetClustersRequest) Descriptor() ([]byte, []int)
func (*GetClustersRequest) GetApi ¶
func (m *GetClustersRequest) GetApi() string
func (*GetClustersRequest) GetFilter ¶
func (m *GetClustersRequest) GetFilter() []string
func (*GetClustersRequest) GetNames ¶
func (m *GetClustersRequest) GetNames() []string
func (*GetClustersRequest) ProtoMessage ¶
func (*GetClustersRequest) ProtoMessage()
func (*GetClustersRequest) Reset ¶
func (m *GetClustersRequest) Reset()
func (*GetClustersRequest) String ¶
func (m *GetClustersRequest) String() string
func (*GetClustersRequest) XXX_DiscardUnknown ¶
func (m *GetClustersRequest) XXX_DiscardUnknown()
func (*GetClustersRequest) XXX_Marshal ¶
func (m *GetClustersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetClustersRequest) XXX_Merge ¶
func (m *GetClustersRequest) XXX_Merge(src proto.Message)
func (*GetClustersRequest) XXX_Size ¶
func (m *GetClustersRequest) XXX_Size() int
func (*GetClustersRequest) XXX_Unmarshal ¶
func (m *GetClustersRequest) XXX_Unmarshal(b []byte) error
type GetClustersResponse ¶
type GetClustersResponse struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Clusters []*Cluster `protobuf:"bytes,2,rep,name=clusters,proto3" json:"clusters,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetClustersResponse) Descriptor ¶
func (*GetClustersResponse) Descriptor() ([]byte, []int)
func (*GetClustersResponse) GetApi ¶
func (m *GetClustersResponse) GetApi() string
func (*GetClustersResponse) GetClusters ¶
func (m *GetClustersResponse) GetClusters() []*Cluster
func (*GetClustersResponse) ProtoMessage ¶
func (*GetClustersResponse) ProtoMessage()
func (*GetClustersResponse) Reset ¶
func (m *GetClustersResponse) Reset()
func (*GetClustersResponse) String ¶
func (m *GetClustersResponse) String() string
func (*GetClustersResponse) XXX_DiscardUnknown ¶
func (m *GetClustersResponse) XXX_DiscardUnknown()
func (*GetClustersResponse) XXX_Marshal ¶
func (m *GetClustersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetClustersResponse) XXX_Merge ¶
func (m *GetClustersResponse) XXX_Merge(src proto.Message)
func (*GetClustersResponse) XXX_Size ¶
func (m *GetClustersResponse) XXX_Size() int
func (*GetClustersResponse) XXX_Unmarshal ¶
func (m *GetClustersResponse) XXX_Unmarshal(b []byte) error
type InitRequest ¶
type InitRequest struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` ClusterName string `protobuf:"bytes,3,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` Platform PlatformName `protobuf:"varint,4,opt,name=platform,proto3,enum=kubekit.v1.PlatformName" json:"platform,omitempty"` Variables map[string]string `` /* 159-byte string literal not displayed */ Credentials map[string]string `` /* 163-byte string literal not displayed */ Resources []string `protobuf:"bytes,7,rep,name=resources,proto3" json:"resources,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InitRequest) Descriptor ¶
func (*InitRequest) Descriptor() ([]byte, []int)
func (*InitRequest) GetApi ¶
func (m *InitRequest) GetApi() string
func (*InitRequest) GetClusterName ¶
func (m *InitRequest) GetClusterName() string
func (*InitRequest) GetCredentials ¶
func (m *InitRequest) GetCredentials() map[string]string
func (*InitRequest) GetKind ¶
func (m *InitRequest) GetKind() string
func (*InitRequest) GetPlatform ¶
func (m *InitRequest) GetPlatform() PlatformName
func (*InitRequest) GetResources ¶
func (m *InitRequest) GetResources() []string
func (*InitRequest) GetVariables ¶
func (m *InitRequest) GetVariables() map[string]string
func (*InitRequest) ProtoMessage ¶
func (*InitRequest) ProtoMessage()
func (*InitRequest) Reset ¶
func (m *InitRequest) Reset()
func (*InitRequest) String ¶
func (m *InitRequest) String() string
func (*InitRequest) XXX_DiscardUnknown ¶
func (m *InitRequest) XXX_DiscardUnknown()
func (*InitRequest) XXX_Marshal ¶
func (m *InitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InitRequest) XXX_Merge ¶
func (m *InitRequest) XXX_Merge(src proto.Message)
func (*InitRequest) XXX_Size ¶
func (m *InitRequest) XXX_Size() int
func (*InitRequest) XXX_Unmarshal ¶
func (m *InitRequest) XXX_Unmarshal(b []byte) error
type InitResponse ¶
type InitResponse struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InitResponse) Descriptor ¶
func (*InitResponse) Descriptor() ([]byte, []int)
func (*InitResponse) GetApi ¶
func (m *InitResponse) GetApi() string
func (*InitResponse) GetKind ¶
func (m *InitResponse) GetKind() string
func (*InitResponse) GetName ¶
func (m *InitResponse) GetName() string
func (*InitResponse) ProtoMessage ¶
func (*InitResponse) ProtoMessage()
func (*InitResponse) Reset ¶
func (m *InitResponse) Reset()
func (*InitResponse) String ¶
func (m *InitResponse) String() string
func (*InitResponse) XXX_DiscardUnknown ¶
func (m *InitResponse) XXX_DiscardUnknown()
func (*InitResponse) XXX_Marshal ¶
func (m *InitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InitResponse) XXX_Merge ¶
func (m *InitResponse) XXX_Merge(src proto.Message)
func (*InitResponse) XXX_Size ¶
func (m *InitResponse) XXX_Size() int
func (*InitResponse) XXX_Unmarshal ¶
func (m *InitResponse) XXX_Unmarshal(b []byte) error
type KubekitClient ¶
type KubekitClient interface { Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) Token(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error) Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*ApplyResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) GetClusters(ctx context.Context, in *GetClustersRequest, opts ...grpc.CallOption) (*GetClustersResponse, error) Describe(ctx context.Context, in *DescribeRequest, opts ...grpc.CallOption) (*DescribeResponse, error) DeleteClusterConfig(ctx context.Context, in *DeleteClusterConfigRequest, opts ...grpc.CallOption) (*DeleteClusterConfigResponse, error) UpdateCluster(ctx context.Context, in *UpdateClusterRequest, opts ...grpc.CallOption) (*UpdateClusterResponse, error) }
KubekitClient is the client API for Kubekit service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewKubekitClient ¶
func NewKubekitClient(cc *grpc.ClientConn) KubekitClient
type KubekitServer ¶
type KubekitServer interface { Version(context.Context, *VersionRequest) (*VersionResponse, error) Token(context.Context, *TokenRequest) (*TokenResponse, error) Init(context.Context, *InitRequest) (*InitResponse, error) Apply(context.Context, *ApplyRequest) (*ApplyResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) GetClusters(context.Context, *GetClustersRequest) (*GetClustersResponse, error) Describe(context.Context, *DescribeRequest) (*DescribeResponse, error) DeleteClusterConfig(context.Context, *DeleteClusterConfigRequest) (*DeleteClusterConfigResponse, error) UpdateCluster(context.Context, *UpdateClusterRequest) (*UpdateClusterResponse, error) }
KubekitServer is the server API for Kubekit service.
type Node ¶
type Node struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` PoolName string `protobuf:"bytes,2,opt,name=pool_name,json=poolName,proto3" json:"pool_name,omitempty"` RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` PublicIp string `protobuf:"bytes,4,opt,name=public_ip,json=publicIp,proto3" json:"public_ip,omitempty"` PrivateIp string `protobuf:"bytes,5,opt,name=private_ip,json=privateIp,proto3" json:"private_ip,omitempty"` OtherIps []string `protobuf:"bytes,6,rep,name=other_ips,json=otherIps,proto3" json:"other_ips,omitempty"` PublicDns string `protobuf:"bytes,7,opt,name=public_dns,json=publicDns,proto3" json:"public_dns,omitempty"` PrivateDns string `protobuf:"bytes,8,opt,name=private_dns,json=privateDns,proto3" json:"private_dns,omitempty"` OtherDns []string `protobuf:"bytes,9,rep,name=other_dns,json=otherDns,proto3" json:"other_dns,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Node) Descriptor ¶
func (*Node) GetOtherDns ¶
func (*Node) GetOtherIps ¶
func (*Node) GetPoolName ¶
func (*Node) GetPrivateDns ¶
func (*Node) GetPrivateIp ¶
func (*Node) GetPublicDns ¶
func (*Node) GetPublicIp ¶
func (*Node) GetRoleName ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type NodePool ¶
type NodePool struct { PoolName string `protobuf:"bytes,1,opt,name=pool_name,json=poolName,proto3" json:"pool_name,omitempty"` Nodes []*Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NodePool) Descriptor ¶
func (*NodePool) GetPoolName ¶
func (*NodePool) ProtoMessage ¶
func (*NodePool) ProtoMessage()
func (*NodePool) XXX_DiscardUnknown ¶
func (m *NodePool) XXX_DiscardUnknown()
func (*NodePool) XXX_Marshal ¶
func (*NodePool) XXX_Unmarshal ¶
type PlatformName ¶
type PlatformName int32
const ( PlatformName_UNKNOWN PlatformName = 0 PlatformName_AWS PlatformName = 1 PlatformName_EKS PlatformName = 2 PlatformName_AZURE PlatformName = 3 PlatformName_AKS PlatformName = 4 PlatformName_OPENSTACK PlatformName = 5 PlatformName_VSPHERE PlatformName = 6 PlatformName_VRA PlatformName = 7 PlatformName_STACKI PlatformName = 8 PlatformName_RAW PlatformName = 9 )
func (PlatformName) EnumDescriptor ¶
func (PlatformName) EnumDescriptor() ([]byte, []int)
func (PlatformName) String ¶
func (x PlatformName) String() string
type Status ¶
type Status int32
const ( Status_UNKNOWN_STATUS Status = 0 Status_ABSENT Status = 1 Status_CREATING Status = 2 Status_PROVISIONED Status = 3 Status_FAILED_PROVISIONING Status = 4 Status_FAILED_CONFIGURATION Status = 5 Status_CREATED Status = 6 Status_FAILED_CREATION Status = 7 Status_RUNNING Status = 8 Status_STOPPED Status = 9 Status_TERMINATING Status = 10 Status_TERMINATED Status = 11 Status_FAILED_TERMINATION Status = 12 )
func (Status) EnumDescriptor ¶
type TokenRequest ¶
type TokenRequest struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenRequest) Descriptor ¶
func (*TokenRequest) Descriptor() ([]byte, []int)
func (*TokenRequest) GetApi ¶
func (m *TokenRequest) GetApi() string
func (*TokenRequest) GetClusterName ¶
func (m *TokenRequest) GetClusterName() string
func (*TokenRequest) GetRole ¶
func (m *TokenRequest) GetRole() string
func (*TokenRequest) ProtoMessage ¶
func (*TokenRequest) ProtoMessage()
func (*TokenRequest) Reset ¶
func (m *TokenRequest) Reset()
func (*TokenRequest) String ¶
func (m *TokenRequest) String() string
func (*TokenRequest) XXX_DiscardUnknown ¶
func (m *TokenRequest) XXX_DiscardUnknown()
func (*TokenRequest) XXX_Marshal ¶
func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenRequest) XXX_Merge ¶
func (m *TokenRequest) XXX_Merge(src proto.Message)
func (*TokenRequest) XXX_Size ¶
func (m *TokenRequest) XXX_Size() int
func (*TokenRequest) XXX_Unmarshal ¶
func (m *TokenRequest) XXX_Unmarshal(b []byte) error
type TokenResponse ¶
type TokenResponse struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` ApiVersion string `protobuf:"bytes,2,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"` Spec *_struct.Struct `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` Status *TokenStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenResponse) Descriptor ¶
func (*TokenResponse) Descriptor() ([]byte, []int)
func (*TokenResponse) GetApiVersion ¶
func (m *TokenResponse) GetApiVersion() string
func (*TokenResponse) GetKind ¶
func (m *TokenResponse) GetKind() string
func (*TokenResponse) GetSpec ¶
func (m *TokenResponse) GetSpec() *_struct.Struct
func (*TokenResponse) GetStatus ¶
func (m *TokenResponse) GetStatus() *TokenStatus
func (*TokenResponse) ProtoMessage ¶
func (*TokenResponse) ProtoMessage()
func (*TokenResponse) Reset ¶
func (m *TokenResponse) Reset()
func (*TokenResponse) String ¶
func (m *TokenResponse) String() string
func (*TokenResponse) XXX_DiscardUnknown ¶
func (m *TokenResponse) XXX_DiscardUnknown()
func (*TokenResponse) XXX_Marshal ¶
func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenResponse) XXX_Merge ¶
func (m *TokenResponse) XXX_Merge(src proto.Message)
func (*TokenResponse) XXX_Size ¶
func (m *TokenResponse) XXX_Size() int
func (*TokenResponse) XXX_Unmarshal ¶
func (m *TokenResponse) XXX_Unmarshal(b []byte) error
type TokenStatus ¶
type TokenStatus struct { ExpirationTimestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=expirationTimestamp,proto3" json:"expirationTimestamp,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TokenStatus) Descriptor ¶
func (*TokenStatus) Descriptor() ([]byte, []int)
func (*TokenStatus) GetExpirationTimestamp ¶
func (m *TokenStatus) GetExpirationTimestamp() *timestamp.Timestamp
func (*TokenStatus) GetToken ¶
func (m *TokenStatus) GetToken() string
func (*TokenStatus) ProtoMessage ¶
func (*TokenStatus) ProtoMessage()
func (*TokenStatus) Reset ¶
func (m *TokenStatus) Reset()
func (*TokenStatus) String ¶
func (m *TokenStatus) String() string
func (*TokenStatus) XXX_DiscardUnknown ¶
func (m *TokenStatus) XXX_DiscardUnknown()
func (*TokenStatus) XXX_Marshal ¶
func (m *TokenStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenStatus) XXX_Merge ¶
func (m *TokenStatus) XXX_Merge(src proto.Message)
func (*TokenStatus) XXX_Size ¶
func (m *TokenStatus) XXX_Size() int
func (*TokenStatus) XXX_Unmarshal ¶
func (m *TokenStatus) XXX_Unmarshal(b []byte) error
type UnimplementedKubekitServer ¶
type UnimplementedKubekitServer struct { }
UnimplementedKubekitServer can be embedded to have forward compatible implementations.
func (*UnimplementedKubekitServer) Apply ¶
func (*UnimplementedKubekitServer) Apply(ctx context.Context, req *ApplyRequest) (*ApplyResponse, error)
func (*UnimplementedKubekitServer) Delete ¶
func (*UnimplementedKubekitServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error)
func (*UnimplementedKubekitServer) DeleteClusterConfig ¶
func (*UnimplementedKubekitServer) DeleteClusterConfig(ctx context.Context, req *DeleteClusterConfigRequest) (*DeleteClusterConfigResponse, error)
func (*UnimplementedKubekitServer) Describe ¶
func (*UnimplementedKubekitServer) Describe(ctx context.Context, req *DescribeRequest) (*DescribeResponse, error)
func (*UnimplementedKubekitServer) GetClusters ¶
func (*UnimplementedKubekitServer) GetClusters(ctx context.Context, req *GetClustersRequest) (*GetClustersResponse, error)
func (*UnimplementedKubekitServer) Init ¶
func (*UnimplementedKubekitServer) Init(ctx context.Context, req *InitRequest) (*InitResponse, error)
func (*UnimplementedKubekitServer) Token ¶
func (*UnimplementedKubekitServer) Token(ctx context.Context, req *TokenRequest) (*TokenResponse, error)
func (*UnimplementedKubekitServer) UpdateCluster ¶
func (*UnimplementedKubekitServer) UpdateCluster(ctx context.Context, req *UpdateClusterRequest) (*UpdateClusterResponse, error)
func (*UnimplementedKubekitServer) Version ¶
func (*UnimplementedKubekitServer) Version(ctx context.Context, req *VersionRequest) (*VersionResponse, error)
type UpdateClusterRequest ¶
type UpdateClusterRequest struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` ClusterName string `protobuf:"bytes,3,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` Variables map[string]string `` /* 159-byte string literal not displayed */ Credentials map[string]string `` /* 163-byte string literal not displayed */ Resources []string `protobuf:"bytes,6,rep,name=resources,proto3" json:"resources,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateClusterRequest) Descriptor ¶
func (*UpdateClusterRequest) Descriptor() ([]byte, []int)
func (*UpdateClusterRequest) GetApi ¶
func (m *UpdateClusterRequest) GetApi() string
func (*UpdateClusterRequest) GetClusterName ¶
func (m *UpdateClusterRequest) GetClusterName() string
func (*UpdateClusterRequest) GetCredentials ¶
func (m *UpdateClusterRequest) GetCredentials() map[string]string
func (*UpdateClusterRequest) GetKind ¶
func (m *UpdateClusterRequest) GetKind() string
func (*UpdateClusterRequest) GetResources ¶
func (m *UpdateClusterRequest) GetResources() []string
func (*UpdateClusterRequest) GetVariables ¶
func (m *UpdateClusterRequest) GetVariables() map[string]string
func (*UpdateClusterRequest) ProtoMessage ¶
func (*UpdateClusterRequest) ProtoMessage()
func (*UpdateClusterRequest) Reset ¶
func (m *UpdateClusterRequest) Reset()
func (*UpdateClusterRequest) String ¶
func (m *UpdateClusterRequest) String() string
func (*UpdateClusterRequest) XXX_DiscardUnknown ¶
func (m *UpdateClusterRequest) XXX_DiscardUnknown()
func (*UpdateClusterRequest) XXX_Marshal ¶
func (m *UpdateClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateClusterRequest) XXX_Merge ¶
func (m *UpdateClusterRequest) XXX_Merge(src proto.Message)
func (*UpdateClusterRequest) XXX_Size ¶
func (m *UpdateClusterRequest) XXX_Size() int
func (*UpdateClusterRequest) XXX_Unmarshal ¶
func (m *UpdateClusterRequest) XXX_Unmarshal(b []byte) error
type UpdateClusterResponse ¶
type UpdateClusterResponse struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateClusterResponse) Descriptor ¶
func (*UpdateClusterResponse) Descriptor() ([]byte, []int)
func (*UpdateClusterResponse) GetApi ¶
func (m *UpdateClusterResponse) GetApi() string
func (*UpdateClusterResponse) ProtoMessage ¶
func (*UpdateClusterResponse) ProtoMessage()
func (*UpdateClusterResponse) Reset ¶
func (m *UpdateClusterResponse) Reset()
func (*UpdateClusterResponse) String ¶
func (m *UpdateClusterResponse) String() string
func (*UpdateClusterResponse) XXX_DiscardUnknown ¶
func (m *UpdateClusterResponse) XXX_DiscardUnknown()
func (*UpdateClusterResponse) XXX_Marshal ¶
func (m *UpdateClusterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateClusterResponse) XXX_Merge ¶
func (m *UpdateClusterResponse) XXX_Merge(src proto.Message)
func (*UpdateClusterResponse) XXX_Size ¶
func (m *UpdateClusterResponse) XXX_Size() int
func (*UpdateClusterResponse) XXX_Unmarshal ¶
func (m *UpdateClusterResponse) XXX_Unmarshal(b []byte) error
type VersionRequest ¶
type VersionRequest struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VersionRequest) Descriptor ¶
func (*VersionRequest) Descriptor() ([]byte, []int)
func (*VersionRequest) GetApi ¶
func (m *VersionRequest) GetApi() string
func (*VersionRequest) ProtoMessage ¶
func (*VersionRequest) ProtoMessage()
func (*VersionRequest) Reset ¶
func (m *VersionRequest) Reset()
func (*VersionRequest) String ¶
func (m *VersionRequest) String() string
func (*VersionRequest) XXX_DiscardUnknown ¶
func (m *VersionRequest) XXX_DiscardUnknown()
func (*VersionRequest) XXX_Marshal ¶
func (m *VersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VersionRequest) XXX_Merge ¶
func (m *VersionRequest) XXX_Merge(src proto.Message)
func (*VersionRequest) XXX_Size ¶
func (m *VersionRequest) XXX_Size() int
func (*VersionRequest) XXX_Unmarshal ¶
func (m *VersionRequest) XXX_Unmarshal(b []byte) error
type VersionResponse ¶
type VersionResponse struct { Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Kubekit string `protobuf:"bytes,2,opt,name=kubekit,proto3" json:"kubekit,omitempty"` Kubernetes string `protobuf:"bytes,3,opt,name=kubernetes,proto3" json:"kubernetes,omitempty"` Docker string `protobuf:"bytes,4,opt,name=docker,proto3" json:"docker,omitempty"` Etcd string `protobuf:"bytes,5,opt,name=etcd,proto3" json:"etcd,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VersionResponse) Descriptor ¶
func (*VersionResponse) Descriptor() ([]byte, []int)
func (*VersionResponse) GetApi ¶
func (m *VersionResponse) GetApi() string
func (*VersionResponse) GetDocker ¶
func (m *VersionResponse) GetDocker() string
func (*VersionResponse) GetEtcd ¶
func (m *VersionResponse) GetEtcd() string
func (*VersionResponse) GetKubekit ¶
func (m *VersionResponse) GetKubekit() string
func (*VersionResponse) GetKubernetes ¶
func (m *VersionResponse) GetKubernetes() string
func (*VersionResponse) ProtoMessage ¶
func (*VersionResponse) ProtoMessage()
func (*VersionResponse) Reset ¶
func (m *VersionResponse) Reset()
func (*VersionResponse) String ¶
func (m *VersionResponse) String() string
func (*VersionResponse) XXX_DiscardUnknown ¶
func (m *VersionResponse) XXX_DiscardUnknown()
func (*VersionResponse) XXX_Marshal ¶
func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VersionResponse) XXX_Merge ¶
func (m *VersionResponse) XXX_Merge(src proto.Message)
func (*VersionResponse) XXX_Size ¶
func (m *VersionResponse) XXX_Size() int
func (*VersionResponse) XXX_Unmarshal ¶
func (m *VersionResponse) XXX_Unmarshal(b []byte) error