instance_tree

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s giraffe_micro.Server, srv Service)

Types

type Client

type Client interface {
	InstanceTree(ctx context.Context, in *InstanceTreeRequest) (*types.Struct, error)
	InstanceTreeAnchor(ctx context.Context, in *InstanceTreeAnchorRequest) (*types.Struct, error)
	InstanceTreeExpand(ctx context.Context, in *InstanceTreeExpandRequest) (*types.Struct, error)
	InstanceTreeSearch(ctx context.Context, in *InstanceTreeSearchRequest) (*types.Struct, error)
}

Client is the client API for instance_tree service.

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

func NewClient

func NewClient(c giraffe_micro.Client) Client

type InstanceTreeAnchorRequest

type InstanceTreeAnchorRequest struct {
	//
	//树定义
	Tree *cmdb.InstanceTreeRootNode `protobuf:"bytes,1,opt,name=tree,proto3" json:"tree" form:"tree"`
	//
	//全局忽略与父级无关联实例,默认false
	IgnoreSingle bool `protobuf:"varint,2,opt,name=ignore_single,json=ignoreSingle,proto3" json:"ignore_single" form:"ignore_single"`
	//
	//模型Id
	ObjectId string `protobuf:"bytes,3,opt,name=object_id,json=objectId,proto3" json:"object_id" form:"object_id"`
	//
	//实例Id
	InstanceId           string   `protobuf:"bytes,4,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

InstanceTreeAnchor请求

func (*InstanceTreeAnchorRequest) Descriptor

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

func (*InstanceTreeAnchorRequest) GetIgnoreSingle

func (m *InstanceTreeAnchorRequest) GetIgnoreSingle() bool

func (*InstanceTreeAnchorRequest) GetInstanceId

func (m *InstanceTreeAnchorRequest) GetInstanceId() string

func (*InstanceTreeAnchorRequest) GetObjectId

func (m *InstanceTreeAnchorRequest) GetObjectId() string

func (*InstanceTreeAnchorRequest) GetTree

func (*InstanceTreeAnchorRequest) ProtoMessage

func (*InstanceTreeAnchorRequest) ProtoMessage()

func (*InstanceTreeAnchorRequest) Reset

func (m *InstanceTreeAnchorRequest) Reset()

func (*InstanceTreeAnchorRequest) String

func (m *InstanceTreeAnchorRequest) String() string

func (*InstanceTreeAnchorRequest) Validate

func (this *InstanceTreeAnchorRequest) Validate() error

func (*InstanceTreeAnchorRequest) XXX_DiscardUnknown

func (m *InstanceTreeAnchorRequest) XXX_DiscardUnknown()

func (*InstanceTreeAnchorRequest) XXX_Marshal

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

func (*InstanceTreeAnchorRequest) XXX_Merge

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

func (*InstanceTreeAnchorRequest) XXX_Size

func (m *InstanceTreeAnchorRequest) XXX_Size() int

func (*InstanceTreeAnchorRequest) XXX_Unmarshal

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

type InstanceTreeAnchorResponseWrapper

type InstanceTreeAnchorResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *types.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

InstanceTreeAnchorApi返回

func (*InstanceTreeAnchorResponseWrapper) Descriptor

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

func (*InstanceTreeAnchorResponseWrapper) GetCode

func (*InstanceTreeAnchorResponseWrapper) GetCodeExplain

func (m *InstanceTreeAnchorResponseWrapper) GetCodeExplain() string

func (*InstanceTreeAnchorResponseWrapper) GetData

func (*InstanceTreeAnchorResponseWrapper) GetError

func (*InstanceTreeAnchorResponseWrapper) ProtoMessage

func (*InstanceTreeAnchorResponseWrapper) ProtoMessage()

func (*InstanceTreeAnchorResponseWrapper) Reset

func (*InstanceTreeAnchorResponseWrapper) String

func (*InstanceTreeAnchorResponseWrapper) Validate

func (this *InstanceTreeAnchorResponseWrapper) Validate() error

func (*InstanceTreeAnchorResponseWrapper) XXX_DiscardUnknown

func (m *InstanceTreeAnchorResponseWrapper) XXX_DiscardUnknown()

func (*InstanceTreeAnchorResponseWrapper) XXX_Marshal

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

func (*InstanceTreeAnchorResponseWrapper) XXX_Merge

func (*InstanceTreeAnchorResponseWrapper) XXX_Size

func (m *InstanceTreeAnchorResponseWrapper) XXX_Size() int

func (*InstanceTreeAnchorResponseWrapper) XXX_Unmarshal

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

type InstanceTreeExpandRequest

type InstanceTreeExpandRequest struct {
	//
	//树定义
	Tree *cmdb.InstanceTreeRootNode `protobuf:"bytes,1,opt,name=tree,proto3" json:"tree" form:"tree"`
	//
	//全局忽略与父级无关联实例,默认false
	IgnoreSingle bool `protobuf:"varint,2,opt,name=ignore_single,json=ignoreSingle,proto3" json:"ignore_single" form:"ignore_single"`
	//
	//模型Id,不传则展开首层
	ObjectId string `protobuf:"bytes,3,opt,name=object_id,json=objectId,proto3" json:"object_id" form:"object_id"`
	//
	//实例Id
	InstanceId           string   `protobuf:"bytes,4,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

InstanceTreeExpand请求

func (*InstanceTreeExpandRequest) Descriptor

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

func (*InstanceTreeExpandRequest) GetIgnoreSingle

func (m *InstanceTreeExpandRequest) GetIgnoreSingle() bool

func (*InstanceTreeExpandRequest) GetInstanceId

func (m *InstanceTreeExpandRequest) GetInstanceId() string

func (*InstanceTreeExpandRequest) GetObjectId

func (m *InstanceTreeExpandRequest) GetObjectId() string

func (*InstanceTreeExpandRequest) GetTree

func (*InstanceTreeExpandRequest) ProtoMessage

func (*InstanceTreeExpandRequest) ProtoMessage()

func (*InstanceTreeExpandRequest) Reset

func (m *InstanceTreeExpandRequest) Reset()

func (*InstanceTreeExpandRequest) String

func (m *InstanceTreeExpandRequest) String() string

func (*InstanceTreeExpandRequest) Validate

func (this *InstanceTreeExpandRequest) Validate() error

func (*InstanceTreeExpandRequest) XXX_DiscardUnknown

func (m *InstanceTreeExpandRequest) XXX_DiscardUnknown()

func (*InstanceTreeExpandRequest) XXX_Marshal

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

func (*InstanceTreeExpandRequest) XXX_Merge

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

func (*InstanceTreeExpandRequest) XXX_Size

func (m *InstanceTreeExpandRequest) XXX_Size() int

func (*InstanceTreeExpandRequest) XXX_Unmarshal

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

type InstanceTreeExpandResponseWrapper

type InstanceTreeExpandResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *types.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

InstanceTreeExpandApi返回

func (*InstanceTreeExpandResponseWrapper) Descriptor

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

func (*InstanceTreeExpandResponseWrapper) GetCode

func (*InstanceTreeExpandResponseWrapper) GetCodeExplain

func (m *InstanceTreeExpandResponseWrapper) GetCodeExplain() string

func (*InstanceTreeExpandResponseWrapper) GetData

func (*InstanceTreeExpandResponseWrapper) GetError

func (*InstanceTreeExpandResponseWrapper) ProtoMessage

func (*InstanceTreeExpandResponseWrapper) ProtoMessage()

func (*InstanceTreeExpandResponseWrapper) Reset

func (*InstanceTreeExpandResponseWrapper) String

func (*InstanceTreeExpandResponseWrapper) Validate

func (this *InstanceTreeExpandResponseWrapper) Validate() error

func (*InstanceTreeExpandResponseWrapper) XXX_DiscardUnknown

func (m *InstanceTreeExpandResponseWrapper) XXX_DiscardUnknown()

func (*InstanceTreeExpandResponseWrapper) XXX_Marshal

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

func (*InstanceTreeExpandResponseWrapper) XXX_Merge

func (*InstanceTreeExpandResponseWrapper) XXX_Size

func (m *InstanceTreeExpandResponseWrapper) XXX_Size() int

func (*InstanceTreeExpandResponseWrapper) XXX_Unmarshal

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

type InstanceTreeRequest

type InstanceTreeRequest struct {
	//
	//树定义
	Tree *cmdb.InstanceTreeRootNode `protobuf:"bytes,1,opt,name=tree,proto3" json:"tree" form:"tree"`
	//
	//全局忽略与父级无关联实例,默认false
	IgnoreSingle         bool     `protobuf:"varint,2,opt,name=ignore_single,json=ignoreSingle,proto3" json:"ignore_single" form:"ignore_single"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

InstanceTree请求

func (*InstanceTreeRequest) Descriptor

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

func (*InstanceTreeRequest) GetIgnoreSingle

func (m *InstanceTreeRequest) GetIgnoreSingle() bool

func (*InstanceTreeRequest) GetTree

func (*InstanceTreeRequest) ProtoMessage

func (*InstanceTreeRequest) ProtoMessage()

func (*InstanceTreeRequest) Reset

func (m *InstanceTreeRequest) Reset()

func (*InstanceTreeRequest) String

func (m *InstanceTreeRequest) String() string

func (*InstanceTreeRequest) Validate

func (this *InstanceTreeRequest) Validate() error

func (*InstanceTreeRequest) XXX_DiscardUnknown

func (m *InstanceTreeRequest) XXX_DiscardUnknown()

func (*InstanceTreeRequest) XXX_Marshal

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

func (*InstanceTreeRequest) XXX_Merge

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

func (*InstanceTreeRequest) XXX_Size

func (m *InstanceTreeRequest) XXX_Size() int

func (*InstanceTreeRequest) XXX_Unmarshal

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

type InstanceTreeResponseWrapper

type InstanceTreeResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *types.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

InstanceTreeApi返回

func (*InstanceTreeResponseWrapper) Descriptor

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

func (*InstanceTreeResponseWrapper) GetCode

func (m *InstanceTreeResponseWrapper) GetCode() int32

func (*InstanceTreeResponseWrapper) GetCodeExplain

func (m *InstanceTreeResponseWrapper) GetCodeExplain() string

func (*InstanceTreeResponseWrapper) GetData

func (*InstanceTreeResponseWrapper) GetError

func (m *InstanceTreeResponseWrapper) GetError() string

func (*InstanceTreeResponseWrapper) ProtoMessage

func (*InstanceTreeResponseWrapper) ProtoMessage()

func (*InstanceTreeResponseWrapper) Reset

func (m *InstanceTreeResponseWrapper) Reset()

func (*InstanceTreeResponseWrapper) String

func (m *InstanceTreeResponseWrapper) String() string

func (*InstanceTreeResponseWrapper) Validate

func (this *InstanceTreeResponseWrapper) Validate() error

func (*InstanceTreeResponseWrapper) XXX_DiscardUnknown

func (m *InstanceTreeResponseWrapper) XXX_DiscardUnknown()

func (*InstanceTreeResponseWrapper) XXX_Marshal

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

func (*InstanceTreeResponseWrapper) XXX_Merge

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

func (*InstanceTreeResponseWrapper) XXX_Size

func (m *InstanceTreeResponseWrapper) XXX_Size() int

func (*InstanceTreeResponseWrapper) XXX_Unmarshal

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

type InstanceTreeSearchRequest

type InstanceTreeSearchRequest struct {
	//
	//树定义
	Tree *cmdb.InstanceTreeRootNode `protobuf:"bytes,1,opt,name=tree,proto3" json:"tree" form:"tree"`
	//
	//全局忽略与父级无关联实例,默认false
	IgnoreSingle bool `protobuf:"varint,2,opt,name=ignore_single,json=ignoreSingle,proto3" json:"ignore_single" form:"ignore_single"`
	//
	//搜索条件
	Query                *types.Struct `protobuf:"bytes,3,opt,name=query,proto3" json:"query" form:"query"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

InstanceTreeSearch请求

func (*InstanceTreeSearchRequest) Descriptor

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

func (*InstanceTreeSearchRequest) GetIgnoreSingle

func (m *InstanceTreeSearchRequest) GetIgnoreSingle() bool

func (*InstanceTreeSearchRequest) GetQuery

func (m *InstanceTreeSearchRequest) GetQuery() *types.Struct

func (*InstanceTreeSearchRequest) GetTree

func (*InstanceTreeSearchRequest) ProtoMessage

func (*InstanceTreeSearchRequest) ProtoMessage()

func (*InstanceTreeSearchRequest) Reset

func (m *InstanceTreeSearchRequest) Reset()

func (*InstanceTreeSearchRequest) String

func (m *InstanceTreeSearchRequest) String() string

func (*InstanceTreeSearchRequest) Validate

func (this *InstanceTreeSearchRequest) Validate() error

func (*InstanceTreeSearchRequest) XXX_DiscardUnknown

func (m *InstanceTreeSearchRequest) XXX_DiscardUnknown()

func (*InstanceTreeSearchRequest) XXX_Marshal

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

func (*InstanceTreeSearchRequest) XXX_Merge

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

func (*InstanceTreeSearchRequest) XXX_Size

func (m *InstanceTreeSearchRequest) XXX_Size() int

func (*InstanceTreeSearchRequest) XXX_Unmarshal

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

type InstanceTreeSearchResponseWrapper

type InstanceTreeSearchResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *types.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

InstanceTreeSearchApi返回

func (*InstanceTreeSearchResponseWrapper) Descriptor

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

func (*InstanceTreeSearchResponseWrapper) GetCode

func (*InstanceTreeSearchResponseWrapper) GetCodeExplain

func (m *InstanceTreeSearchResponseWrapper) GetCodeExplain() string

func (*InstanceTreeSearchResponseWrapper) GetData

func (*InstanceTreeSearchResponseWrapper) GetError

func (*InstanceTreeSearchResponseWrapper) ProtoMessage

func (*InstanceTreeSearchResponseWrapper) ProtoMessage()

func (*InstanceTreeSearchResponseWrapper) Reset

func (*InstanceTreeSearchResponseWrapper) String

func (*InstanceTreeSearchResponseWrapper) Validate

func (this *InstanceTreeSearchResponseWrapper) Validate() error

func (*InstanceTreeSearchResponseWrapper) XXX_DiscardUnknown

func (m *InstanceTreeSearchResponseWrapper) XXX_DiscardUnknown()

func (*InstanceTreeSearchResponseWrapper) XXX_Marshal

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

func (*InstanceTreeSearchResponseWrapper) XXX_Merge

func (*InstanceTreeSearchResponseWrapper) XXX_Size

func (m *InstanceTreeSearchResponseWrapper) XXX_Size() int

func (*InstanceTreeSearchResponseWrapper) XXX_Unmarshal

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

type Service

type Service interface {
	InstanceTree(context.Context, *InstanceTreeRequest) (*types.Struct, error)
	InstanceTreeAnchor(context.Context, *InstanceTreeAnchorRequest) (*types.Struct, error)
	InstanceTreeExpand(context.Context, *InstanceTreeExpandRequest) (*types.Struct, error)
	InstanceTreeSearch(context.Context, *InstanceTreeSearchRequest) (*types.Struct, error)
}

Service is the server API for instance_tree service.

Jump to

Keyboard shortcuts

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