Documentation ¶
Index ¶
- Variables
- func RegisterKubeNativeServer(s grpc.ServiceRegistrar, srv KubeNativeServer)
- type ApplyReq
- type ApplyResp
- func (*ApplyResp) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyResp) GetCode() string
- func (x *ApplyResp) GetDataSet() []*DataSet
- func (x *ApplyResp) GetMsg() string
- func (*ApplyResp) ProtoMessage()
- func (x *ApplyResp) ProtoReflect() protoreflect.Message
- func (x *ApplyResp) Reset()
- func (x *ApplyResp) String() string
- type DataSet
- func (*DataSet) Descriptor() ([]byte, []int)deprecated
- func (x *DataSet) GetApiVersion() string
- func (x *DataSet) GetKind() string
- func (x *DataSet) GetName() string
- func (x *DataSet) GetNamespace() string
- func (*DataSet) ProtoMessage()
- func (x *DataSet) ProtoReflect() protoreflect.Message
- func (x *DataSet) Reset()
- func (x *DataSet) String() string
- type GetReq
- type KubeNativeClient
- type KubeNativeServer
- type ListReq
- type Resp
- type UnimplementedKubeNativeServer
- func (UnimplementedKubeNativeServer) ApplyYaml(context.Context, *ApplyReq) (*ApplyResp, error)
- func (UnimplementedKubeNativeServer) DeleteYaml(context.Context, *ApplyReq) (*Resp, error)
- func (UnimplementedKubeNativeServer) Get(context.Context, *GetReq) (*Resp, error)
- func (UnimplementedKubeNativeServer) List(context.Context, *ListReq) (*Resp, error)
- type UnsafeKubeNativeServer
Constants ¶
This section is empty.
Variables ¶
var File_kubenative_proto protoreflect.FileDescriptor
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) ProtoReflect ¶
func (x *ApplyReq) ProtoReflect() protoreflect.Message
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) ProtoReflect ¶
func (x *ApplyResp) ProtoReflect() protoreflect.Message
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) ProtoReflect ¶
func (x *DataSet) ProtoReflect() protoreflect.Message
type GetReq ¶
type GetReq struct { YamlString string `protobuf:"bytes,1,opt,name=yamlString,proto3" json:"yamlString,omitempty"` // contains filtered or unexported fields }
func (*GetReq) ProtoReflect ¶
func (x *GetReq) ProtoReflect() protoreflect.Message
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) ProtoReflect ¶
func (x *ListReq) ProtoReflect() protoreflect.Message
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) ProtoReflect ¶
func (x *Resp) ProtoReflect() protoreflect.Message
type UnimplementedKubeNativeServer ¶
type UnimplementedKubeNativeServer struct { }
UnimplementedKubeNativeServer must be embedded to have forward compatible implementations.
func (UnimplementedKubeNativeServer) ApplyYaml ¶
func (UnimplementedKubeNativeServer) DeleteYaml ¶
func (UnimplementedKubeNativeServer) Get ¶
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.