hypers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Kind_name = map[int32]string{
	0: "all",
	1: "hyper",
	2: "agent",
}
View Source
var Kind_value = map[string]int32{
	"all":   0,
	"hyper": 1,
	"agent": 2,
}

Functions

func RegisterHyperServiceServer

func RegisterHyperServiceServer(s *grpc.Server, srv HyperServiceServer)

Types

type DeleteReply

type DeleteReply struct {
	Deleted              int64    `protobuf:"varint,1,opt,name=deleted,proto3" json:"deleted,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteReply) Descriptor

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

func (*DeleteReply) GetDeleted

func (m *DeleteReply) GetDeleted() int64

func (*DeleteReply) ProtoMessage

func (*DeleteReply) ProtoMessage()

func (*DeleteReply) Reset

func (m *DeleteReply) Reset()

func (*DeleteReply) String

func (m *DeleteReply) String() string

func (*DeleteReply) XXX_DiscardUnknown

func (m *DeleteReply) XXX_DiscardUnknown()

func (*DeleteReply) XXX_Marshal

func (m *DeleteReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteReply) XXX_Merge

func (m *DeleteReply) XXX_Merge(src proto.Message)

func (*DeleteReply) XXX_Size

func (m *DeleteReply) XXX_Size() int

func (*DeleteReply) XXX_Unmarshal

func (m *DeleteReply) XXX_Unmarshal(b []byte) error

type DeleteRequest

type DeleteRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteRequest) Descriptor

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

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 GetReply

type GetReply struct {
	Hyper                *Hyper   `protobuf:"bytes,1,opt,name=hyper,proto3" json:"hyper,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetReply) Descriptor

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

func (*GetReply) GetHyper

func (m *GetReply) GetHyper() *Hyper

func (*GetReply) ProtoMessage

func (*GetReply) ProtoMessage()

func (*GetReply) Reset

func (m *GetReply) Reset()

func (*GetReply) String

func (m *GetReply) String() string

func (*GetReply) XXX_DiscardUnknown

func (m *GetReply) XXX_DiscardUnknown()

func (*GetReply) XXX_Marshal

func (m *GetReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetReply) XXX_Merge

func (m *GetReply) XXX_Merge(src proto.Message)

func (*GetReply) XXX_Size

func (m *GetReply) XXX_Size() int

func (*GetReply) XXX_Unmarshal

func (m *GetReply) XXX_Unmarshal(b []byte) error

type GetRequest

type GetRequest struct {
	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRequest) Descriptor

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

func (*GetRequest) GetId

func (m *GetRequest) GetId() int32

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) XXX_DiscardUnknown

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal

func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetRequest) XXX_Merge

func (m *GetRequest) XXX_Merge(src proto.Message)

func (*GetRequest) XXX_Size

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal

func (m *GetRequest) XXX_Unmarshal(b []byte) error

type Hyper

type Hyper struct {
	Id                   int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Hostname             string   `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Status               string   `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	Parentid             int32    `protobuf:"varint,5,opt,name=parentid,proto3" json:"parentid,omitempty"`
	Duration             int64    `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Hyper) Descriptor

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

func (*Hyper) GetDuration

func (m *Hyper) GetDuration() int64

func (*Hyper) GetHostname

func (m *Hyper) GetHostname() string

func (*Hyper) GetId

func (m *Hyper) GetId() int32

func (*Hyper) GetParentid

func (m *Hyper) GetParentid() int32

func (*Hyper) GetStatus

func (m *Hyper) GetStatus() string

func (*Hyper) ProtoMessage

func (*Hyper) ProtoMessage()

func (*Hyper) Reset

func (m *Hyper) Reset()

func (*Hyper) String

func (m *Hyper) String() string

func (*Hyper) XXX_DiscardUnknown

func (m *Hyper) XXX_DiscardUnknown()

func (*Hyper) XXX_Marshal

func (m *Hyper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Hyper) XXX_Merge

func (m *Hyper) XXX_Merge(src proto.Message)

func (*Hyper) XXX_Size

func (m *Hyper) XXX_Size() int

func (*Hyper) XXX_Unmarshal

func (m *Hyper) XXX_Unmarshal(b []byte) error

type HyperServiceClient

type HyperServiceClient interface {
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteReply, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (HyperService_ListClient, error)
}

HyperServiceClient is the client API for HyperService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewHyperServiceClient

func NewHyperServiceClient(cc *grpc.ClientConn) HyperServiceClient

type HyperServiceServer

type HyperServiceServer interface {
	Delete(context.Context, *DeleteRequest) (*DeleteReply, error)
	Get(context.Context, *GetRequest) (*GetReply, error)
	List(*ListRequest, HyperService_ListServer) error
}

HyperServiceServer is the server API for HyperService service.

type HyperService_ListClient

type HyperService_ListClient interface {
	Recv() (*Hyper, error)
	grpc.ClientStream
}

type HyperService_ListServer

type HyperService_ListServer interface {
	Send(*Hyper) error
	grpc.ServerStream
}

type Kind

type Kind int32
const (
	Kind_all   Kind = 0
	Kind_hyper Kind = 1
	Kind_agent Kind = 2
)

func (Kind) EnumDescriptor

func (Kind) EnumDescriptor() ([]byte, []int)

func (Kind) String

func (x Kind) String() string

type ListRequest

type ListRequest struct {
	Parentid             int32    `protobuf:"varint,1,opt,name=parentid,proto3" json:"parentid,omitempty"`
	Status               string   `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	Kind                 Kind     `protobuf:"varint,3,opt,name=kind,proto3,enum=com.ibm.cloudland.hypers.Kind" json:"kind,omitempty"`
	Unscoped             bool     `protobuf:"varint,4,opt,name=unscoped,proto3" json:"unscoped,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListRequest) Descriptor

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

func (*ListRequest) GetKind

func (m *ListRequest) GetKind() Kind

func (*ListRequest) GetParentid

func (m *ListRequest) GetParentid() int32

func (*ListRequest) GetStatus

func (m *ListRequest) GetStatus() string

func (*ListRequest) GetUnscoped

func (m *ListRequest) GetUnscoped() bool

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset

func (m *ListRequest) Reset()

func (*ListRequest) String

func (m *ListRequest) String() string

func (*ListRequest) XXX_DiscardUnknown

func (m *ListRequest) XXX_DiscardUnknown()

func (*ListRequest) XXX_Marshal

func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListRequest) XXX_Merge

func (m *ListRequest) XXX_Merge(src proto.Message)

func (*ListRequest) XXX_Size

func (m *ListRequest) XXX_Size() int

func (*ListRequest) XXX_Unmarshal

func (m *ListRequest) XXX_Unmarshal(b []byte) error

type UnimplementedHyperServiceServer

type UnimplementedHyperServiceServer struct {
}

UnimplementedHyperServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedHyperServiceServer) Delete

func (*UnimplementedHyperServiceServer) Get

func (*UnimplementedHyperServiceServer) List

Jump to

Keyboard shortcuts

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