Documentation
¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type DeleteStateRequest
- func (*DeleteStateRequest) Descriptor() ([]byte, []int)
- func (m *DeleteStateRequest) GetInstanceId() string
- func (m *DeleteStateRequest) GetObjectId() string
- func (m *DeleteStateRequest) GetOrg() int32
- func (m *DeleteStateRequest) GetUser() string
- func (*DeleteStateRequest) ProtoMessage()
- func (m *DeleteStateRequest) Reset()
- func (m *DeleteStateRequest) String() string
- func (this *DeleteStateRequest) Validate() error
- func (m *DeleteStateRequest) XXX_DiscardUnknown()
- func (m *DeleteStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteStateRequest) XXX_Merge(src proto.Message)
- func (m *DeleteStateRequest) XXX_Size() int
- func (m *DeleteStateRequest) XXX_Unmarshal(b []byte) error
- type DeleteStateResponseWrapper
- func (*DeleteStateResponseWrapper) Descriptor() ([]byte, []int)
- func (m *DeleteStateResponseWrapper) GetCode() int32
- func (m *DeleteStateResponseWrapper) GetCodeExplain() string
- func (m *DeleteStateResponseWrapper) GetData() *types.Empty
- func (m *DeleteStateResponseWrapper) GetError() string
- func (*DeleteStateResponseWrapper) ProtoMessage()
- func (m *DeleteStateResponseWrapper) Reset()
- func (m *DeleteStateResponseWrapper) String() string
- func (this *DeleteStateResponseWrapper) Validate() error
- func (m *DeleteStateResponseWrapper) XXX_DiscardUnknown()
- func (m *DeleteStateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteStateResponseWrapper) XXX_Merge(src proto.Message)
- func (m *DeleteStateResponseWrapper) XXX_Size() int
- func (m *DeleteStateResponseWrapper) XXX_Unmarshal(b []byte) error
- type GetStateRequest
- func (*GetStateRequest) Descriptor() ([]byte, []int)
- func (m *GetStateRequest) GetInstanceId() string
- func (m *GetStateRequest) GetObjectId() string
- func (m *GetStateRequest) GetOrg() int32
- func (m *GetStateRequest) GetUser() string
- func (*GetStateRequest) ProtoMessage()
- func (m *GetStateRequest) Reset()
- func (m *GetStateRequest) String() string
- func (this *GetStateRequest) Validate() error
- func (m *GetStateRequest) XXX_DiscardUnknown()
- func (m *GetStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetStateRequest) XXX_Merge(src proto.Message)
- func (m *GetStateRequest) XXX_Size() int
- func (m *GetStateRequest) XXX_Unmarshal(b []byte) error
- type GetStateResponseWrapper
- func (*GetStateResponseWrapper) Descriptor() ([]byte, []int)
- func (m *GetStateResponseWrapper) GetCode() int32
- func (m *GetStateResponseWrapper) GetCodeExplain() string
- func (m *GetStateResponseWrapper) GetData() *types.Struct
- func (m *GetStateResponseWrapper) GetError() string
- func (*GetStateResponseWrapper) ProtoMessage()
- func (m *GetStateResponseWrapper) Reset()
- func (m *GetStateResponseWrapper) String() string
- func (this *GetStateResponseWrapper) Validate() error
- func (m *GetStateResponseWrapper) XXX_DiscardUnknown()
- func (m *GetStateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetStateResponseWrapper) XXX_Merge(src proto.Message)
- func (m *GetStateResponseWrapper) XXX_Size() int
- func (m *GetStateResponseWrapper) XXX_Unmarshal(b []byte) error
- type LockStateRequest
- func (*LockStateRequest) Descriptor() ([]byte, []int)
- func (m *LockStateRequest) GetBody() *cmdb.TFLockInfo
- func (m *LockStateRequest) GetInstanceId() string
- func (m *LockStateRequest) GetObjectId() string
- func (m *LockStateRequest) GetOrg() int32
- func (m *LockStateRequest) GetUser() string
- func (*LockStateRequest) ProtoMessage()
- func (m *LockStateRequest) Reset()
- func (m *LockStateRequest) String() string
- func (this *LockStateRequest) Validate() error
- func (m *LockStateRequest) XXX_DiscardUnknown()
- func (m *LockStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LockStateRequest) XXX_Merge(src proto.Message)
- func (m *LockStateRequest) XXX_Size() int
- func (m *LockStateRequest) XXX_Unmarshal(b []byte) error
- type LockStateResponseWrapper
- func (*LockStateResponseWrapper) Descriptor() ([]byte, []int)
- func (m *LockStateResponseWrapper) GetCode() int32
- func (m *LockStateResponseWrapper) GetCodeExplain() string
- func (m *LockStateResponseWrapper) GetData() *types.Empty
- func (m *LockStateResponseWrapper) GetError() string
- func (*LockStateResponseWrapper) ProtoMessage()
- func (m *LockStateResponseWrapper) Reset()
- func (m *LockStateResponseWrapper) String() string
- func (this *LockStateResponseWrapper) Validate() error
- func (m *LockStateResponseWrapper) XXX_DiscardUnknown()
- func (m *LockStateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LockStateResponseWrapper) XXX_Merge(src proto.Message)
- func (m *LockStateResponseWrapper) XXX_Size() int
- func (m *LockStateResponseWrapper) XXX_Unmarshal(b []byte) error
- type Service
- type UnLockStateRequest
- func (*UnLockStateRequest) Descriptor() ([]byte, []int)
- func (m *UnLockStateRequest) GetBody() *cmdb.TFLockInfo
- func (m *UnLockStateRequest) GetInstanceId() string
- func (m *UnLockStateRequest) GetObjectId() string
- func (m *UnLockStateRequest) GetOrg() int32
- func (m *UnLockStateRequest) GetUser() string
- func (*UnLockStateRequest) ProtoMessage()
- func (m *UnLockStateRequest) Reset()
- func (m *UnLockStateRequest) String() string
- func (this *UnLockStateRequest) Validate() error
- func (m *UnLockStateRequest) XXX_DiscardUnknown()
- func (m *UnLockStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnLockStateRequest) XXX_Merge(src proto.Message)
- func (m *UnLockStateRequest) XXX_Size() int
- func (m *UnLockStateRequest) XXX_Unmarshal(b []byte) error
- type UnLockStateResponseWrapper
- func (*UnLockStateResponseWrapper) Descriptor() ([]byte, []int)
- func (m *UnLockStateResponseWrapper) GetCode() int32
- func (m *UnLockStateResponseWrapper) GetCodeExplain() string
- func (m *UnLockStateResponseWrapper) GetData() *types.Empty
- func (m *UnLockStateResponseWrapper) GetError() string
- func (*UnLockStateResponseWrapper) ProtoMessage()
- func (m *UnLockStateResponseWrapper) Reset()
- func (m *UnLockStateResponseWrapper) String() string
- func (this *UnLockStateResponseWrapper) Validate() error
- func (m *UnLockStateResponseWrapper) XXX_DiscardUnknown()
- func (m *UnLockStateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnLockStateResponseWrapper) XXX_Merge(src proto.Message)
- func (m *UnLockStateResponseWrapper) XXX_Size() int
- func (m *UnLockStateResponseWrapper) XXX_Unmarshal(b []byte) error
- type UpdateStateRequest
- func (*UpdateStateRequest) Descriptor() ([]byte, []int)
- func (m *UpdateStateRequest) GetBody() *types.Struct
- func (m *UpdateStateRequest) GetID() string
- func (m *UpdateStateRequest) GetInstanceId() string
- func (m *UpdateStateRequest) GetObjectId() string
- func (m *UpdateStateRequest) GetOrg() int32
- func (m *UpdateStateRequest) GetUser() string
- func (*UpdateStateRequest) ProtoMessage()
- func (m *UpdateStateRequest) Reset()
- func (m *UpdateStateRequest) String() string
- func (this *UpdateStateRequest) Validate() error
- func (m *UpdateStateRequest) XXX_DiscardUnknown()
- func (m *UpdateStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateStateRequest) XXX_Merge(src proto.Message)
- func (m *UpdateStateRequest) XXX_Size() int
- func (m *UpdateStateRequest) XXX_Unmarshal(b []byte) error
- type UpdateStateResponseWrapper
- func (*UpdateStateResponseWrapper) Descriptor() ([]byte, []int)
- func (m *UpdateStateResponseWrapper) GetCode() int32
- func (m *UpdateStateResponseWrapper) GetCodeExplain() string
- func (m *UpdateStateResponseWrapper) GetData() *types.Empty
- func (m *UpdateStateResponseWrapper) GetError() string
- func (*UpdateStateResponseWrapper) ProtoMessage()
- func (m *UpdateStateResponseWrapper) Reset()
- func (m *UpdateStateResponseWrapper) String() string
- func (this *UpdateStateResponseWrapper) Validate() error
- func (m *UpdateStateResponseWrapper) XXX_DiscardUnknown()
- func (m *UpdateStateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateStateResponseWrapper) XXX_Merge(src proto.Message)
- func (m *UpdateStateResponseWrapper) XXX_Size() int
- func (m *UpdateStateResponseWrapper) XXX_Unmarshal(b []byte) error
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 { DeleteState(ctx context.Context, in *DeleteStateRequest) (*types.Empty, error) GetState(ctx context.Context, in *GetStateRequest) (*types.Struct, error) LockState(ctx context.Context, in *LockStateRequest) (*types.Empty, error) UnLockState(ctx context.Context, in *UnLockStateRequest) (*types.Empty, error) UpdateState(ctx context.Context, in *UpdateStateRequest) (*types.Empty, error) }
Client is the client API for terraform 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 DeleteStateRequest ¶
type DeleteStateRequest struct { // //模型Id ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId" form:"objectId"` // //实例Id InstanceId string `protobuf:"bytes,2,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"` // //ORG Org int32 `protobuf:"varint,3,opt,name=org,proto3" json:"org" form:"org"` // //操作用户,默认defaultUser User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user" form:"user"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DeleteState请求
func (*DeleteStateRequest) Descriptor ¶
func (*DeleteStateRequest) Descriptor() ([]byte, []int)
func (*DeleteStateRequest) GetInstanceId ¶
func (m *DeleteStateRequest) GetInstanceId() string
func (*DeleteStateRequest) GetObjectId ¶
func (m *DeleteStateRequest) GetObjectId() string
func (*DeleteStateRequest) GetOrg ¶
func (m *DeleteStateRequest) GetOrg() int32
func (*DeleteStateRequest) GetUser ¶
func (m *DeleteStateRequest) GetUser() string
func (*DeleteStateRequest) ProtoMessage ¶
func (*DeleteStateRequest) ProtoMessage()
func (*DeleteStateRequest) Reset ¶
func (m *DeleteStateRequest) Reset()
func (*DeleteStateRequest) String ¶
func (m *DeleteStateRequest) String() string
func (*DeleteStateRequest) Validate ¶
func (this *DeleteStateRequest) Validate() error
func (*DeleteStateRequest) XXX_DiscardUnknown ¶
func (m *DeleteStateRequest) XXX_DiscardUnknown()
func (*DeleteStateRequest) XXX_Marshal ¶
func (m *DeleteStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteStateRequest) XXX_Merge ¶
func (m *DeleteStateRequest) XXX_Merge(src proto.Message)
func (*DeleteStateRequest) XXX_Size ¶
func (m *DeleteStateRequest) XXX_Size() int
func (*DeleteStateRequest) XXX_Unmarshal ¶
func (m *DeleteStateRequest) XXX_Unmarshal(b []byte) error
type DeleteStateResponseWrapper ¶
type DeleteStateResponseWrapper 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.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DeleteStateApi返回
func (*DeleteStateResponseWrapper) Descriptor ¶
func (*DeleteStateResponseWrapper) Descriptor() ([]byte, []int)
func (*DeleteStateResponseWrapper) GetCode ¶
func (m *DeleteStateResponseWrapper) GetCode() int32
func (*DeleteStateResponseWrapper) GetCodeExplain ¶
func (m *DeleteStateResponseWrapper) GetCodeExplain() string
func (*DeleteStateResponseWrapper) GetData ¶
func (m *DeleteStateResponseWrapper) GetData() *types.Empty
func (*DeleteStateResponseWrapper) GetError ¶
func (m *DeleteStateResponseWrapper) GetError() string
func (*DeleteStateResponseWrapper) ProtoMessage ¶
func (*DeleteStateResponseWrapper) ProtoMessage()
func (*DeleteStateResponseWrapper) Reset ¶
func (m *DeleteStateResponseWrapper) Reset()
func (*DeleteStateResponseWrapper) String ¶
func (m *DeleteStateResponseWrapper) String() string
func (*DeleteStateResponseWrapper) Validate ¶
func (this *DeleteStateResponseWrapper) Validate() error
func (*DeleteStateResponseWrapper) XXX_DiscardUnknown ¶
func (m *DeleteStateResponseWrapper) XXX_DiscardUnknown()
func (*DeleteStateResponseWrapper) XXX_Marshal ¶
func (m *DeleteStateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteStateResponseWrapper) XXX_Merge ¶
func (m *DeleteStateResponseWrapper) XXX_Merge(src proto.Message)
func (*DeleteStateResponseWrapper) XXX_Size ¶
func (m *DeleteStateResponseWrapper) XXX_Size() int
func (*DeleteStateResponseWrapper) XXX_Unmarshal ¶
func (m *DeleteStateResponseWrapper) XXX_Unmarshal(b []byte) error
type GetStateRequest ¶
type GetStateRequest struct { // //模型Id ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId" form:"objectId"` // //实例Id InstanceId string `protobuf:"bytes,2,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"` // //ORG Org int32 `protobuf:"varint,3,opt,name=org,proto3" json:"org" form:"org"` // //操作用户,默认defaultUser User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user" form:"user"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetState请求
func (*GetStateRequest) Descriptor ¶
func (*GetStateRequest) Descriptor() ([]byte, []int)
func (*GetStateRequest) GetInstanceId ¶
func (m *GetStateRequest) GetInstanceId() string
func (*GetStateRequest) GetObjectId ¶
func (m *GetStateRequest) GetObjectId() string
func (*GetStateRequest) GetOrg ¶
func (m *GetStateRequest) GetOrg() int32
func (*GetStateRequest) GetUser ¶
func (m *GetStateRequest) GetUser() string
func (*GetStateRequest) ProtoMessage ¶
func (*GetStateRequest) ProtoMessage()
func (*GetStateRequest) Reset ¶
func (m *GetStateRequest) Reset()
func (*GetStateRequest) String ¶
func (m *GetStateRequest) String() string
func (*GetStateRequest) Validate ¶
func (this *GetStateRequest) Validate() error
func (*GetStateRequest) XXX_DiscardUnknown ¶
func (m *GetStateRequest) XXX_DiscardUnknown()
func (*GetStateRequest) XXX_Marshal ¶
func (m *GetStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetStateRequest) XXX_Merge ¶
func (m *GetStateRequest) XXX_Merge(src proto.Message)
func (*GetStateRequest) XXX_Size ¶
func (m *GetStateRequest) XXX_Size() int
func (*GetStateRequest) XXX_Unmarshal ¶
func (m *GetStateRequest) XXX_Unmarshal(b []byte) error
type GetStateResponseWrapper ¶
type GetStateResponseWrapper 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:"-"` }
GetStateApi返回
func (*GetStateResponseWrapper) Descriptor ¶
func (*GetStateResponseWrapper) Descriptor() ([]byte, []int)
func (*GetStateResponseWrapper) GetCode ¶
func (m *GetStateResponseWrapper) GetCode() int32
func (*GetStateResponseWrapper) GetCodeExplain ¶
func (m *GetStateResponseWrapper) GetCodeExplain() string
func (*GetStateResponseWrapper) GetData ¶
func (m *GetStateResponseWrapper) GetData() *types.Struct
func (*GetStateResponseWrapper) GetError ¶
func (m *GetStateResponseWrapper) GetError() string
func (*GetStateResponseWrapper) ProtoMessage ¶
func (*GetStateResponseWrapper) ProtoMessage()
func (*GetStateResponseWrapper) Reset ¶
func (m *GetStateResponseWrapper) Reset()
func (*GetStateResponseWrapper) String ¶
func (m *GetStateResponseWrapper) String() string
func (*GetStateResponseWrapper) Validate ¶
func (this *GetStateResponseWrapper) Validate() error
func (*GetStateResponseWrapper) XXX_DiscardUnknown ¶
func (m *GetStateResponseWrapper) XXX_DiscardUnknown()
func (*GetStateResponseWrapper) XXX_Marshal ¶
func (m *GetStateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetStateResponseWrapper) XXX_Merge ¶
func (m *GetStateResponseWrapper) XXX_Merge(src proto.Message)
func (*GetStateResponseWrapper) XXX_Size ¶
func (m *GetStateResponseWrapper) XXX_Size() int
func (*GetStateResponseWrapper) XXX_Unmarshal ¶
func (m *GetStateResponseWrapper) XXX_Unmarshal(b []byte) error
type LockStateRequest ¶
type LockStateRequest struct { // //模型Id ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId" form:"objectId"` // //实例Id InstanceId string `protobuf:"bytes,2,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"` // //ORG Org int32 `protobuf:"varint,3,opt,name=org,proto3" json:"org" form:"org"` // //操作用户,默认defaultUser User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user" form:"user"` // //锁信息 Body *cmdb.TFLockInfo `protobuf:"bytes,5,opt,name=body,proto3" json:"body" form:"body"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LockState请求
func (*LockStateRequest) Descriptor ¶
func (*LockStateRequest) Descriptor() ([]byte, []int)
func (*LockStateRequest) GetBody ¶
func (m *LockStateRequest) GetBody() *cmdb.TFLockInfo
func (*LockStateRequest) GetInstanceId ¶
func (m *LockStateRequest) GetInstanceId() string
func (*LockStateRequest) GetObjectId ¶
func (m *LockStateRequest) GetObjectId() string
func (*LockStateRequest) GetOrg ¶
func (m *LockStateRequest) GetOrg() int32
func (*LockStateRequest) GetUser ¶
func (m *LockStateRequest) GetUser() string
func (*LockStateRequest) ProtoMessage ¶
func (*LockStateRequest) ProtoMessage()
func (*LockStateRequest) Reset ¶
func (m *LockStateRequest) Reset()
func (*LockStateRequest) String ¶
func (m *LockStateRequest) String() string
func (*LockStateRequest) Validate ¶
func (this *LockStateRequest) Validate() error
func (*LockStateRequest) XXX_DiscardUnknown ¶
func (m *LockStateRequest) XXX_DiscardUnknown()
func (*LockStateRequest) XXX_Marshal ¶
func (m *LockStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LockStateRequest) XXX_Merge ¶
func (m *LockStateRequest) XXX_Merge(src proto.Message)
func (*LockStateRequest) XXX_Size ¶
func (m *LockStateRequest) XXX_Size() int
func (*LockStateRequest) XXX_Unmarshal ¶
func (m *LockStateRequest) XXX_Unmarshal(b []byte) error
type LockStateResponseWrapper ¶
type LockStateResponseWrapper 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.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LockStateApi返回
func (*LockStateResponseWrapper) Descriptor ¶
func (*LockStateResponseWrapper) Descriptor() ([]byte, []int)
func (*LockStateResponseWrapper) GetCode ¶
func (m *LockStateResponseWrapper) GetCode() int32
func (*LockStateResponseWrapper) GetCodeExplain ¶
func (m *LockStateResponseWrapper) GetCodeExplain() string
func (*LockStateResponseWrapper) GetData ¶
func (m *LockStateResponseWrapper) GetData() *types.Empty
func (*LockStateResponseWrapper) GetError ¶
func (m *LockStateResponseWrapper) GetError() string
func (*LockStateResponseWrapper) ProtoMessage ¶
func (*LockStateResponseWrapper) ProtoMessage()
func (*LockStateResponseWrapper) Reset ¶
func (m *LockStateResponseWrapper) Reset()
func (*LockStateResponseWrapper) String ¶
func (m *LockStateResponseWrapper) String() string
func (*LockStateResponseWrapper) Validate ¶
func (this *LockStateResponseWrapper) Validate() error
func (*LockStateResponseWrapper) XXX_DiscardUnknown ¶
func (m *LockStateResponseWrapper) XXX_DiscardUnknown()
func (*LockStateResponseWrapper) XXX_Marshal ¶
func (m *LockStateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LockStateResponseWrapper) XXX_Merge ¶
func (m *LockStateResponseWrapper) XXX_Merge(src proto.Message)
func (*LockStateResponseWrapper) XXX_Size ¶
func (m *LockStateResponseWrapper) XXX_Size() int
func (*LockStateResponseWrapper) XXX_Unmarshal ¶
func (m *LockStateResponseWrapper) XXX_Unmarshal(b []byte) error
type Service ¶
type Service interface { DeleteState(context.Context, *DeleteStateRequest) (*types.Empty, error) GetState(context.Context, *GetStateRequest) (*types.Struct, error) LockState(context.Context, *LockStateRequest) (*types.Empty, error) UnLockState(context.Context, *UnLockStateRequest) (*types.Empty, error) UpdateState(context.Context, *UpdateStateRequest) (*types.Empty, error) }
Service is the server API for terraform service.
type UnLockStateRequest ¶
type UnLockStateRequest struct { // //模型Id ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId" form:"objectId"` // //实例Id InstanceId string `protobuf:"bytes,2,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"` // //ORG Org int32 `protobuf:"varint,3,opt,name=org,proto3" json:"org" form:"org"` // //操作用户,默认defaultUser User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user" form:"user"` // //锁信息 Body *cmdb.TFLockInfo `protobuf:"bytes,5,opt,name=body,proto3" json:"body" form:"body"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UnLockState请求
func (*UnLockStateRequest) Descriptor ¶
func (*UnLockStateRequest) Descriptor() ([]byte, []int)
func (*UnLockStateRequest) GetBody ¶
func (m *UnLockStateRequest) GetBody() *cmdb.TFLockInfo
func (*UnLockStateRequest) GetInstanceId ¶
func (m *UnLockStateRequest) GetInstanceId() string
func (*UnLockStateRequest) GetObjectId ¶
func (m *UnLockStateRequest) GetObjectId() string
func (*UnLockStateRequest) GetOrg ¶
func (m *UnLockStateRequest) GetOrg() int32
func (*UnLockStateRequest) GetUser ¶
func (m *UnLockStateRequest) GetUser() string
func (*UnLockStateRequest) ProtoMessage ¶
func (*UnLockStateRequest) ProtoMessage()
func (*UnLockStateRequest) Reset ¶
func (m *UnLockStateRequest) Reset()
func (*UnLockStateRequest) String ¶
func (m *UnLockStateRequest) String() string
func (*UnLockStateRequest) Validate ¶
func (this *UnLockStateRequest) Validate() error
func (*UnLockStateRequest) XXX_DiscardUnknown ¶
func (m *UnLockStateRequest) XXX_DiscardUnknown()
func (*UnLockStateRequest) XXX_Marshal ¶
func (m *UnLockStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnLockStateRequest) XXX_Merge ¶
func (m *UnLockStateRequest) XXX_Merge(src proto.Message)
func (*UnLockStateRequest) XXX_Size ¶
func (m *UnLockStateRequest) XXX_Size() int
func (*UnLockStateRequest) XXX_Unmarshal ¶
func (m *UnLockStateRequest) XXX_Unmarshal(b []byte) error
type UnLockStateResponseWrapper ¶
type UnLockStateResponseWrapper 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.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UnLockStateApi返回
func (*UnLockStateResponseWrapper) Descriptor ¶
func (*UnLockStateResponseWrapper) Descriptor() ([]byte, []int)
func (*UnLockStateResponseWrapper) GetCode ¶
func (m *UnLockStateResponseWrapper) GetCode() int32
func (*UnLockStateResponseWrapper) GetCodeExplain ¶
func (m *UnLockStateResponseWrapper) GetCodeExplain() string
func (*UnLockStateResponseWrapper) GetData ¶
func (m *UnLockStateResponseWrapper) GetData() *types.Empty
func (*UnLockStateResponseWrapper) GetError ¶
func (m *UnLockStateResponseWrapper) GetError() string
func (*UnLockStateResponseWrapper) ProtoMessage ¶
func (*UnLockStateResponseWrapper) ProtoMessage()
func (*UnLockStateResponseWrapper) Reset ¶
func (m *UnLockStateResponseWrapper) Reset()
func (*UnLockStateResponseWrapper) String ¶
func (m *UnLockStateResponseWrapper) String() string
func (*UnLockStateResponseWrapper) Validate ¶
func (this *UnLockStateResponseWrapper) Validate() error
func (*UnLockStateResponseWrapper) XXX_DiscardUnknown ¶
func (m *UnLockStateResponseWrapper) XXX_DiscardUnknown()
func (*UnLockStateResponseWrapper) XXX_Marshal ¶
func (m *UnLockStateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnLockStateResponseWrapper) XXX_Merge ¶
func (m *UnLockStateResponseWrapper) XXX_Merge(src proto.Message)
func (*UnLockStateResponseWrapper) XXX_Size ¶
func (m *UnLockStateResponseWrapper) XXX_Size() int
func (*UnLockStateResponseWrapper) XXX_Unmarshal ¶
func (m *UnLockStateResponseWrapper) XXX_Unmarshal(b []byte) error
type UpdateStateRequest ¶
type UpdateStateRequest struct { // //模型Id ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId" form:"objectId"` // //实例Id InstanceId string `protobuf:"bytes,2,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"` // //ORG Org int32 `protobuf:"varint,3,opt,name=org,proto3" json:"org" form:"org"` // //操作用户,默认defaultUser User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user" form:"user"` // //锁Id ID string `protobuf:"bytes,5,opt,name=ID,proto3" json:"ID" form:"ID"` // //state内容, 暂不约束,请查看model定义(TFStateV4) Body *types.Struct `protobuf:"bytes,6,opt,name=body,proto3" json:"body" form:"body"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UpdateState请求
func (*UpdateStateRequest) Descriptor ¶
func (*UpdateStateRequest) Descriptor() ([]byte, []int)
func (*UpdateStateRequest) GetBody ¶
func (m *UpdateStateRequest) GetBody() *types.Struct
func (*UpdateStateRequest) GetID ¶
func (m *UpdateStateRequest) GetID() string
func (*UpdateStateRequest) GetInstanceId ¶
func (m *UpdateStateRequest) GetInstanceId() string
func (*UpdateStateRequest) GetObjectId ¶
func (m *UpdateStateRequest) GetObjectId() string
func (*UpdateStateRequest) GetOrg ¶
func (m *UpdateStateRequest) GetOrg() int32
func (*UpdateStateRequest) GetUser ¶
func (m *UpdateStateRequest) GetUser() string
func (*UpdateStateRequest) ProtoMessage ¶
func (*UpdateStateRequest) ProtoMessage()
func (*UpdateStateRequest) Reset ¶
func (m *UpdateStateRequest) Reset()
func (*UpdateStateRequest) String ¶
func (m *UpdateStateRequest) String() string
func (*UpdateStateRequest) Validate ¶
func (this *UpdateStateRequest) Validate() error
func (*UpdateStateRequest) XXX_DiscardUnknown ¶
func (m *UpdateStateRequest) XXX_DiscardUnknown()
func (*UpdateStateRequest) XXX_Marshal ¶
func (m *UpdateStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateStateRequest) XXX_Merge ¶
func (m *UpdateStateRequest) XXX_Merge(src proto.Message)
func (*UpdateStateRequest) XXX_Size ¶
func (m *UpdateStateRequest) XXX_Size() int
func (*UpdateStateRequest) XXX_Unmarshal ¶
func (m *UpdateStateRequest) XXX_Unmarshal(b []byte) error
type UpdateStateResponseWrapper ¶
type UpdateStateResponseWrapper 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.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UpdateStateApi返回
func (*UpdateStateResponseWrapper) Descriptor ¶
func (*UpdateStateResponseWrapper) Descriptor() ([]byte, []int)
func (*UpdateStateResponseWrapper) GetCode ¶
func (m *UpdateStateResponseWrapper) GetCode() int32
func (*UpdateStateResponseWrapper) GetCodeExplain ¶
func (m *UpdateStateResponseWrapper) GetCodeExplain() string
func (*UpdateStateResponseWrapper) GetData ¶
func (m *UpdateStateResponseWrapper) GetData() *types.Empty
func (*UpdateStateResponseWrapper) GetError ¶
func (m *UpdateStateResponseWrapper) GetError() string
func (*UpdateStateResponseWrapper) ProtoMessage ¶
func (*UpdateStateResponseWrapper) ProtoMessage()
func (*UpdateStateResponseWrapper) Reset ¶
func (m *UpdateStateResponseWrapper) Reset()
func (*UpdateStateResponseWrapper) String ¶
func (m *UpdateStateResponseWrapper) String() string
func (*UpdateStateResponseWrapper) Validate ¶
func (this *UpdateStateResponseWrapper) Validate() error
func (*UpdateStateResponseWrapper) XXX_DiscardUnknown ¶
func (m *UpdateStateResponseWrapper) XXX_DiscardUnknown()
func (*UpdateStateResponseWrapper) XXX_Marshal ¶
func (m *UpdateStateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateStateResponseWrapper) XXX_Merge ¶
func (m *UpdateStateResponseWrapper) XXX_Merge(src proto.Message)
func (*UpdateStateResponseWrapper) XXX_Size ¶
func (m *UpdateStateResponseWrapper) XXX_Size() int
func (*UpdateStateResponseWrapper) XXX_Unmarshal ¶
func (m *UpdateStateResponseWrapper) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.