kubenative

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_kubenative_proto protoreflect.FileDescriptor
View Source
var KubeNative_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kubenative.kubeNative",
	HandlerType: (*KubeNativeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ApplyYaml",
			Handler:    _KubeNative_ApplyYaml_Handler,
		},
		{
			MethodName: "DeleteYaml",
			Handler:    _KubeNative_DeleteYaml_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _KubeNative_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _KubeNative_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kubenative.proto",
}

KubeNative_ServiceDesc is the grpc.ServiceDesc for KubeNative service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKubeNativeServer

func RegisterKubeNativeServer(s grpc.ServiceRegistrar, srv KubeNativeServer)

Types

type ApplyReq

type ApplyReq struct {
	YamlString string `protobuf:"bytes,1,opt,name=yamlString,proto3" json:"yamlString,omitempty"` // @gotags: copier:"yamlString", json:"yaml_string"
	// contains filtered or unexported fields
}

func (*ApplyReq) Descriptor deprecated

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

Deprecated: Use ApplyReq.ProtoReflect.Descriptor instead.

func (*ApplyReq) GetYamlString

func (x *ApplyReq) GetYamlString() string

func (*ApplyReq) ProtoMessage

func (*ApplyReq) ProtoMessage()

func (*ApplyReq) ProtoReflect

func (x *ApplyReq) ProtoReflect() protoreflect.Message

func (*ApplyReq) Reset

func (x *ApplyReq) Reset()

func (*ApplyReq) String

func (x *ApplyReq) String() string

type ApplyResp

type ApplyResp struct {
	Code    string     `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`       // @gotags: copier:"Code", json:"code"
	Msg     string     `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`         // @gotags: copier:"Msg", json:"msg"
	DataSet []*DataSet `protobuf:"bytes,3,rep,name=dataSet,proto3" json:"dataSet,omitempty"` // @gotags: copier:"Data", json:"dataSet"
	// contains filtered or unexported fields
}

func (*ApplyResp) Descriptor deprecated

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

Deprecated: Use ApplyResp.ProtoReflect.Descriptor instead.

func (*ApplyResp) GetCode

func (x *ApplyResp) GetCode() string

func (*ApplyResp) GetDataSet

func (x *ApplyResp) GetDataSet() []*DataSet

func (*ApplyResp) GetMsg

func (x *ApplyResp) GetMsg() string

func (*ApplyResp) ProtoMessage

func (*ApplyResp) ProtoMessage()

func (*ApplyResp) ProtoReflect

func (x *ApplyResp) ProtoReflect() protoreflect.Message

func (*ApplyResp) Reset

func (x *ApplyResp) Reset()

func (*ApplyResp) String

func (x *ApplyResp) String() string

type DataSet

type DataSet struct {
	ApiVersion string `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
	Kind       string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Namespace  string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name       string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DataSet) Descriptor deprecated

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

Deprecated: Use DataSet.ProtoReflect.Descriptor instead.

func (*DataSet) GetApiVersion

func (x *DataSet) GetApiVersion() string

func (*DataSet) GetKind

func (x *DataSet) GetKind() string

func (*DataSet) GetName

func (x *DataSet) GetName() string

func (*DataSet) GetNamespace

func (x *DataSet) GetNamespace() string

func (*DataSet) ProtoMessage

func (*DataSet) ProtoMessage()

func (*DataSet) ProtoReflect

func (x *DataSet) ProtoReflect() protoreflect.Message

func (*DataSet) Reset

func (x *DataSet) Reset()

func (*DataSet) String

func (x *DataSet) String() string

type GetReq

type GetReq struct {
	YamlString string `protobuf:"bytes,1,opt,name=yamlString,proto3" json:"yamlString,omitempty"`
	// contains filtered or unexported fields
}

func (*GetReq) Descriptor deprecated

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

Deprecated: Use GetReq.ProtoReflect.Descriptor instead.

func (*GetReq) GetYamlString

func (x *GetReq) GetYamlString() string

func (*GetReq) ProtoMessage

func (*GetReq) ProtoMessage()

func (*GetReq) ProtoReflect

func (x *GetReq) ProtoReflect() protoreflect.Message

func (*GetReq) Reset

func (x *GetReq) Reset()

func (*GetReq) String

func (x *GetReq) String() string

type KubeNativeClient

type KubeNativeClient interface {
	ApplyYaml(ctx context.Context, in *ApplyReq, opts ...grpc.CallOption) (*ApplyResp, error)
	DeleteYaml(ctx context.Context, in *ApplyReq, opts ...grpc.CallOption) (*Resp, error)
	Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Resp, error)
	List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*Resp, error)
}

KubeNativeClient is the client API for KubeNative service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewKubeNativeClient

func NewKubeNativeClient(cc grpc.ClientConnInterface) KubeNativeClient

type KubeNativeServer

type KubeNativeServer interface {
	ApplyYaml(context.Context, *ApplyReq) (*ApplyResp, error)
	DeleteYaml(context.Context, *ApplyReq) (*Resp, error)
	Get(context.Context, *GetReq) (*Resp, error)
	List(context.Context, *ListReq) (*Resp, error)
	// contains filtered or unexported methods
}

KubeNativeServer is the server API for KubeNative service. All implementations must embed UnimplementedKubeNativeServer for forward compatibility

type ListReq

type ListReq struct {
	YamlString string `protobuf:"bytes,1,opt,name=yamlString,proto3" json:"yamlString,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReq) Descriptor deprecated

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

Deprecated: Use ListReq.ProtoReflect.Descriptor instead.

func (*ListReq) GetYamlString

func (x *ListReq) GetYamlString() string

func (*ListReq) ProtoMessage

func (*ListReq) ProtoMessage()

func (*ListReq) ProtoReflect

func (x *ListReq) ProtoReflect() protoreflect.Message

func (*ListReq) Reset

func (x *ListReq) Reset()

func (*ListReq) String

func (x *ListReq) String() string

type Resp

type Resp struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // @gotags: copier:"Code", json:"code"
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`   // @gotags: copier:"Msg", json:"msg"
	Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // @gotags: copier:"Data", json:"data"
	// contains filtered or unexported fields
}

func (*Resp) Descriptor deprecated

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

Deprecated: Use Resp.ProtoReflect.Descriptor instead.

func (*Resp) GetCode

func (x *Resp) GetCode() string

func (*Resp) GetData

func (x *Resp) GetData() string

func (*Resp) GetMsg

func (x *Resp) GetMsg() string

func (*Resp) ProtoMessage

func (*Resp) ProtoMessage()

func (*Resp) ProtoReflect

func (x *Resp) ProtoReflect() protoreflect.Message

func (*Resp) Reset

func (x *Resp) Reset()

func (*Resp) String

func (x *Resp) String() string

type UnimplementedKubeNativeServer

type UnimplementedKubeNativeServer struct {
}

UnimplementedKubeNativeServer must be embedded to have forward compatible implementations.

func (UnimplementedKubeNativeServer) ApplyYaml

func (UnimplementedKubeNativeServer) DeleteYaml

func (UnimplementedKubeNativeServer) Get

func (UnimplementedKubeNativeServer) List

type UnsafeKubeNativeServer

type UnsafeKubeNativeServer interface {
	// contains filtered or unexported methods
}

UnsafeKubeNativeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KubeNativeServer will result in compilation errors.

Jump to

Keyboard shortcuts

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