Documentation ¶
Index ¶
- Variables
- func RegisterKotfApiServer(s *grpc.Server, srv KotfApiServer)
- type KotfApiClient
- type KotfApiServer
- type KotfResult
- func (*KotfResult) Descriptor() ([]byte, []int)deprecated
- func (x *KotfResult) GetMsg() string
- func (x *KotfResult) GetOutput() string
- func (x *KotfResult) GetSuccess() bool
- func (*KotfResult) ProtoMessage()
- func (x *KotfResult) ProtoReflect() protoreflect.Message
- func (x *KotfResult) Reset()
- func (x *KotfResult) String() string
- type TerraformApplyRequest
- func (*TerraformApplyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TerraformApplyRequest) GetCloudRegion() string
- func (x *TerraformApplyRequest) GetClusterName() string
- func (x *TerraformApplyRequest) GetType() string
- func (*TerraformApplyRequest) ProtoMessage()
- func (x *TerraformApplyRequest) ProtoReflect() protoreflect.Message
- func (x *TerraformApplyRequest) Reset()
- func (x *TerraformApplyRequest) String() string
- type TerraformDestroyRequest
- func (*TerraformDestroyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TerraformDestroyRequest) GetCloudRegion() string
- func (x *TerraformDestroyRequest) GetClusterName() string
- func (x *TerraformDestroyRequest) GetType() string
- func (*TerraformDestroyRequest) ProtoMessage()
- func (x *TerraformDestroyRequest) ProtoReflect() protoreflect.Message
- func (x *TerraformDestroyRequest) Reset()
- func (x *TerraformDestroyRequest) String() string
- type TerraformInitRequest
- func (*TerraformInitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TerraformInitRequest) GetCloudRegion() string
- func (x *TerraformInitRequest) GetClusterName() string
- func (x *TerraformInitRequest) GetHosts() string
- func (x *TerraformInitRequest) GetProvider() string
- func (x *TerraformInitRequest) GetType() string
- func (*TerraformInitRequest) ProtoMessage()
- func (x *TerraformInitRequest) ProtoReflect() protoreflect.Message
- func (x *TerraformInitRequest) Reset()
- func (x *TerraformInitRequest) String() string
- type UnimplementedKotfApiServer
- func (*UnimplementedKotfApiServer) Apply(context.Context, *TerraformApplyRequest) (*KotfResult, error)
- func (*UnimplementedKotfApiServer) Destroy(context.Context, *TerraformDestroyRequest) (*KotfResult, error)
- func (*UnimplementedKotfApiServer) Init(context.Context, *TerraformInitRequest) (*KotfResult, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var File_kotf_proto protoreflect.FileDescriptor
Functions ¶
func RegisterKotfApiServer ¶
func RegisterKotfApiServer(s *grpc.Server, srv KotfApiServer)
Types ¶
type KotfApiClient ¶
type KotfApiClient interface { Init(ctx context.Context, in *TerraformInitRequest, opts ...grpc.CallOption) (*KotfResult, error) Apply(ctx context.Context, in *TerraformApplyRequest, opts ...grpc.CallOption) (*KotfResult, error) Destroy(ctx context.Context, in *TerraformDestroyRequest, opts ...grpc.CallOption) (*KotfResult, error) }
KotfApiClient is the client API for KotfApi service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewKotfApiClient ¶
func NewKotfApiClient(cc grpc.ClientConnInterface) KotfApiClient
type KotfApiServer ¶
type KotfApiServer interface { Init(context.Context, *TerraformInitRequest) (*KotfResult, error) Apply(context.Context, *TerraformApplyRequest) (*KotfResult, error) Destroy(context.Context, *TerraformDestroyRequest) (*KotfResult, error) }
KotfApiServer is the server API for KotfApi service.
type KotfResult ¶
type KotfResult struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Output string `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` // contains filtered or unexported fields }
func (*KotfResult) Descriptor
deprecated
func (*KotfResult) Descriptor() ([]byte, []int)
Deprecated: Use KotfResult.ProtoReflect.Descriptor instead.
func (*KotfResult) GetMsg ¶
func (x *KotfResult) GetMsg() string
func (*KotfResult) GetOutput ¶
func (x *KotfResult) GetOutput() string
func (*KotfResult) GetSuccess ¶
func (x *KotfResult) GetSuccess() bool
func (*KotfResult) ProtoMessage ¶
func (*KotfResult) ProtoMessage()
func (*KotfResult) ProtoReflect ¶
func (x *KotfResult) ProtoReflect() protoreflect.Message
func (*KotfResult) Reset ¶
func (x *KotfResult) Reset()
func (*KotfResult) String ¶
func (x *KotfResult) String() string
type TerraformApplyRequest ¶
type TerraformApplyRequest struct { ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` CloudRegion string `protobuf:"bytes,3,opt,name=cloudRegion,proto3" json:"cloudRegion,omitempty"` // contains filtered or unexported fields }
func (*TerraformApplyRequest) Descriptor
deprecated
func (*TerraformApplyRequest) Descriptor() ([]byte, []int)
Deprecated: Use TerraformApplyRequest.ProtoReflect.Descriptor instead.
func (*TerraformApplyRequest) GetCloudRegion ¶
func (x *TerraformApplyRequest) GetCloudRegion() string
func (*TerraformApplyRequest) GetClusterName ¶
func (x *TerraformApplyRequest) GetClusterName() string
func (*TerraformApplyRequest) GetType ¶
func (x *TerraformApplyRequest) GetType() string
func (*TerraformApplyRequest) ProtoMessage ¶
func (*TerraformApplyRequest) ProtoMessage()
func (*TerraformApplyRequest) ProtoReflect ¶
func (x *TerraformApplyRequest) ProtoReflect() protoreflect.Message
func (*TerraformApplyRequest) Reset ¶
func (x *TerraformApplyRequest) Reset()
func (*TerraformApplyRequest) String ¶
func (x *TerraformApplyRequest) String() string
type TerraformDestroyRequest ¶
type TerraformDestroyRequest struct { ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` CloudRegion string `protobuf:"bytes,3,opt,name=cloudRegion,proto3" json:"cloudRegion,omitempty"` // contains filtered or unexported fields }
func (*TerraformDestroyRequest) Descriptor
deprecated
func (*TerraformDestroyRequest) Descriptor() ([]byte, []int)
Deprecated: Use TerraformDestroyRequest.ProtoReflect.Descriptor instead.
func (*TerraformDestroyRequest) GetCloudRegion ¶
func (x *TerraformDestroyRequest) GetCloudRegion() string
func (*TerraformDestroyRequest) GetClusterName ¶
func (x *TerraformDestroyRequest) GetClusterName() string
func (*TerraformDestroyRequest) GetType ¶
func (x *TerraformDestroyRequest) GetType() string
func (*TerraformDestroyRequest) ProtoMessage ¶
func (*TerraformDestroyRequest) ProtoMessage()
func (*TerraformDestroyRequest) ProtoReflect ¶
func (x *TerraformDestroyRequest) ProtoReflect() protoreflect.Message
func (*TerraformDestroyRequest) Reset ¶
func (x *TerraformDestroyRequest) Reset()
func (*TerraformDestroyRequest) String ¶
func (x *TerraformDestroyRequest) String() string
type TerraformInitRequest ¶
type TerraformInitRequest struct { ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` CloudRegion string `protobuf:"bytes,3,opt,name=cloudRegion,proto3" json:"cloudRegion,omitempty"` Hosts string `protobuf:"bytes,4,opt,name=hosts,proto3" json:"hosts,omitempty"` Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider,omitempty"` // contains filtered or unexported fields }
func (*TerraformInitRequest) Descriptor
deprecated
func (*TerraformInitRequest) Descriptor() ([]byte, []int)
Deprecated: Use TerraformInitRequest.ProtoReflect.Descriptor instead.
func (*TerraformInitRequest) GetCloudRegion ¶
func (x *TerraformInitRequest) GetCloudRegion() string
func (*TerraformInitRequest) GetClusterName ¶
func (x *TerraformInitRequest) GetClusterName() string
func (*TerraformInitRequest) GetHosts ¶
func (x *TerraformInitRequest) GetHosts() string
func (*TerraformInitRequest) GetProvider ¶
func (x *TerraformInitRequest) GetProvider() string
func (*TerraformInitRequest) GetType ¶
func (x *TerraformInitRequest) GetType() string
func (*TerraformInitRequest) ProtoMessage ¶
func (*TerraformInitRequest) ProtoMessage()
func (*TerraformInitRequest) ProtoReflect ¶
func (x *TerraformInitRequest) ProtoReflect() protoreflect.Message
func (*TerraformInitRequest) Reset ¶
func (x *TerraformInitRequest) Reset()
func (*TerraformInitRequest) String ¶
func (x *TerraformInitRequest) String() string
type UnimplementedKotfApiServer ¶
type UnimplementedKotfApiServer struct { }
UnimplementedKotfApiServer can be embedded to have forward compatible implementations.
func (*UnimplementedKotfApiServer) Apply ¶
func (*UnimplementedKotfApiServer) Apply(context.Context, *TerraformApplyRequest) (*KotfResult, error)
func (*UnimplementedKotfApiServer) Destroy ¶
func (*UnimplementedKotfApiServer) Destroy(context.Context, *TerraformDestroyRequest) (*KotfResult, error)
func (*UnimplementedKotfApiServer) Init ¶
func (*UnimplementedKotfApiServer) Init(context.Context, *TerraformInitRequest) (*KotfResult, error)
Click to show internal directories.
Click to hide internal directories.