api

package
v0.0.0-...-a9e687f Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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) Destroy

func (*UnimplementedKotfApiServer) Init

Jump to

Keyboard shortcuts

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