Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
- type APIClient
- type APIServer
- type CreateI
- type CreateI_API
- type CreateI_Obj
- type CreateO
- type CreateO_API
- type CreateO_Obj
- type DeleteI
- type DeleteI_API
- type DeleteI_Obj
- type DeleteO
- type DeleteO_API
- type DeleteO_Obj
- type SearchI
- type SearchI_API
- func (*SearchI_API) Descriptor() ([]byte, []int)deprecated
- func (x *SearchI_API) GetChunking() *SearchI_API_Chunking
- func (x *SearchI_API) GetOperator() []string
- func (*SearchI_API) ProtoMessage()
- func (x *SearchI_API) ProtoReflect() protoreflect.Message
- func (x *SearchI_API) Reset()
- func (x *SearchI_API) String() string
- type SearchI_API_Chunking
- func (*SearchI_API_Chunking) Descriptor() ([]byte, []int)deprecated
- func (x *SearchI_API_Chunking) GetPerpage() string
- func (x *SearchI_API_Chunking) GetPointer() string
- func (*SearchI_API_Chunking) ProtoMessage()
- func (x *SearchI_API_Chunking) ProtoReflect() protoreflect.Message
- func (x *SearchI_API_Chunking) Reset()
- func (x *SearchI_API_Chunking) String() string
- type SearchI_Obj
- type SearchO
- type SearchO_API
- type SearchO_API_Chunking
- func (*SearchO_API_Chunking) Descriptor() ([]byte, []int)deprecated
- func (x *SearchO_API_Chunking) GetPerpage() string
- func (x *SearchO_API_Chunking) GetPointer() string
- func (*SearchO_API_Chunking) ProtoMessage()
- func (x *SearchO_API_Chunking) ProtoReflect() protoreflect.Message
- func (x *SearchO_API_Chunking) Reset()
- func (x *SearchO_API_Chunking) String() string
- type SearchO_Obj
- type UnimplementedAPIServer
- func (UnimplementedAPIServer) Create(context.Context, *CreateI) (*CreateO, error)
- func (UnimplementedAPIServer) Delete(context.Context, *DeleteI) (*DeleteO, error)
- func (UnimplementedAPIServer) Search(context.Context, *SearchI) (*SearchO, error)
- func (UnimplementedAPIServer) Update(context.Context, *UpdateI) (*UpdateO, error)
- type UnsafeAPIServer
- type UpdateI
- type UpdateI_API
- type UpdateI_Obj
- func (*UpdateI_Obj) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateI_Obj) GetJsnpatch() []*UpdateI_Obj_Jsnpatch
- func (x *UpdateI_Obj) GetMetadata() map[string]string
- func (*UpdateI_Obj) ProtoMessage()
- func (x *UpdateI_Obj) ProtoReflect() protoreflect.Message
- func (x *UpdateI_Obj) Reset()
- func (x *UpdateI_Obj) String() string
- type UpdateI_Obj_Jsnpatch
- func (*UpdateI_Obj_Jsnpatch) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateI_Obj_Jsnpatch) GetOpe() string
- func (x *UpdateI_Obj_Jsnpatch) GetPat() string
- func (x *UpdateI_Obj_Jsnpatch) GetVal() string
- func (*UpdateI_Obj_Jsnpatch) ProtoMessage()
- func (x *UpdateI_Obj_Jsnpatch) ProtoReflect() protoreflect.Message
- func (x *UpdateI_Obj_Jsnpatch) Reset()
- func (x *UpdateI_Obj_Jsnpatch) String() string
- type UpdateO
- type UpdateO_API
- type UpdateO_Obj
Constants ¶
This section is empty.
Variables ¶
var File_pbf_role_api_proto protoreflect.FileDescriptor
var File_pbf_role_create_proto protoreflect.FileDescriptor
var File_pbf_role_delete_proto protoreflect.FileDescriptor
var File_pbf_role_search_proto protoreflect.FileDescriptor
var File_pbf_role_update_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServer ¶
func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
Types ¶
type APIClient ¶
type APIClient interface { Create(ctx context.Context, in *CreateI, opts ...grpc.CallOption) (*CreateO, error) Delete(ctx context.Context, in *DeleteI, opts ...grpc.CallOption) (*DeleteO, error) Search(ctx context.Context, in *SearchI, opts ...grpc.CallOption) (*SearchO, error) Update(ctx context.Context, in *UpdateI, opts ...grpc.CallOption) (*UpdateO, error) }
APIClient is the client API for API 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 NewAPIClient ¶
func NewAPIClient(cc grpc.ClientConnInterface) APIClient
type APIServer ¶
type APIServer interface { Create(context.Context, *CreateI) (*CreateO, error) Delete(context.Context, *DeleteI) (*DeleteO, error) Search(context.Context, *SearchI) (*SearchO, error) Update(context.Context, *UpdateI) (*UpdateO, error) // contains filtered or unexported methods }
APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility
type CreateI ¶
type CreateI struct { Api *CreateI_API `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Obj []*CreateI_Obj `protobuf:"bytes,2,rep,name=obj,proto3" json:"obj,omitempty"` // contains filtered or unexported fields }
CreateI is the input for creating roles. Roles can be created by users for themselves or for other users. The user creating the object is tracked via the authentication layer. The user being the subject of the role association has to be provided with the metadata.
{ "obj": [ { "metadata": { "resource.venturemark.co/kind": "venture", "role.venturemark.co/kind": "owner", "subject.venturemark.co/id": "<id>", "venture.venturemark.co/id": "<id>" } } ] }
func (*CreateI) Descriptor
deprecated
func (*CreateI) GetApi ¶
func (x *CreateI) GetApi() *CreateI_API
func (*CreateI) GetObj ¶
func (x *CreateI) GetObj() []*CreateI_Obj
func (*CreateI) ProtoMessage ¶
func (*CreateI) ProtoMessage()
func (*CreateI) ProtoReflect ¶
func (x *CreateI) ProtoReflect() protoreflect.Message
type CreateI_API ¶
type CreateI_API struct {
// contains filtered or unexported fields
}
func (*CreateI_API) Descriptor
deprecated
func (*CreateI_API) Descriptor() ([]byte, []int)
Deprecated: Use CreateI_API.ProtoReflect.Descriptor instead.
func (*CreateI_API) ProtoMessage ¶
func (*CreateI_API) ProtoMessage()
func (*CreateI_API) ProtoReflect ¶
func (x *CreateI_API) ProtoReflect() protoreflect.Message
func (*CreateI_API) Reset ¶
func (x *CreateI_API) Reset()
func (*CreateI_API) String ¶
func (x *CreateI_API) String() string
type CreateI_Obj ¶
type CreateI_Obj struct { Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateI_Obj) Descriptor
deprecated
func (*CreateI_Obj) Descriptor() ([]byte, []int)
Deprecated: Use CreateI_Obj.ProtoReflect.Descriptor instead.
func (*CreateI_Obj) GetMetadata ¶
func (x *CreateI_Obj) GetMetadata() map[string]string
func (*CreateI_Obj) ProtoMessage ¶
func (*CreateI_Obj) ProtoMessage()
func (*CreateI_Obj) ProtoReflect ¶
func (x *CreateI_Obj) ProtoReflect() protoreflect.Message
func (*CreateI_Obj) Reset ¶
func (x *CreateI_Obj) Reset()
func (*CreateI_Obj) String ¶
func (x *CreateI_Obj) String() string
type CreateO ¶
type CreateO struct { Api *CreateO_API `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Obj []*CreateO_Obj `protobuf:"bytes,2,rep,name=obj,proto3" json:"obj,omitempty"` // contains filtered or unexported fields }
CreateO is the output for creating roles. Only the exact unix timestamp of creation is returned with the object metadata when successfully creating an role.
{ "obj": [ { "metadata": { "role.venturemark.co/id": "<id>" } } ] }
func (*CreateO) Descriptor
deprecated
func (*CreateO) GetApi ¶
func (x *CreateO) GetApi() *CreateO_API
func (*CreateO) GetObj ¶
func (x *CreateO) GetObj() []*CreateO_Obj
func (*CreateO) ProtoMessage ¶
func (*CreateO) ProtoMessage()
func (*CreateO) ProtoReflect ¶
func (x *CreateO) ProtoReflect() protoreflect.Message
type CreateO_API ¶
type CreateO_API struct {
// contains filtered or unexported fields
}
func (*CreateO_API) Descriptor
deprecated
func (*CreateO_API) Descriptor() ([]byte, []int)
Deprecated: Use CreateO_API.ProtoReflect.Descriptor instead.
func (*CreateO_API) ProtoMessage ¶
func (*CreateO_API) ProtoMessage()
func (*CreateO_API) ProtoReflect ¶
func (x *CreateO_API) ProtoReflect() protoreflect.Message
func (*CreateO_API) Reset ¶
func (x *CreateO_API) Reset()
func (*CreateO_API) String ¶
func (x *CreateO_API) String() string
type CreateO_Obj ¶
type CreateO_Obj struct { Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateO_Obj) Descriptor
deprecated
func (*CreateO_Obj) Descriptor() ([]byte, []int)
Deprecated: Use CreateO_Obj.ProtoReflect.Descriptor instead.
func (*CreateO_Obj) GetMetadata ¶
func (x *CreateO_Obj) GetMetadata() map[string]string
func (*CreateO_Obj) ProtoMessage ¶
func (*CreateO_Obj) ProtoMessage()
func (*CreateO_Obj) ProtoReflect ¶
func (x *CreateO_Obj) ProtoReflect() protoreflect.Message
func (*CreateO_Obj) Reset ¶
func (x *CreateO_Obj) Reset()
func (*CreateO_Obj) String ¶
func (x *CreateO_Obj) String() string
type DeleteI ¶
type DeleteI struct { Api *DeleteI_API `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Obj []*DeleteI_Obj `protobuf:"bytes,2,rep,name=obj,proto3" json:"obj,omitempty"` // contains filtered or unexported fields }
DeleteI is the input for deleting roles.
{ "obj": [ { "metadata": { "resource.venturemark.co/kind": "venture", "role.venturemark.co/id": "<id>", "venture.venturemark.co/id": "<id>" } } ] }
func (*DeleteI) Descriptor
deprecated
func (*DeleteI) GetApi ¶
func (x *DeleteI) GetApi() *DeleteI_API
func (*DeleteI) GetObj ¶
func (x *DeleteI) GetObj() []*DeleteI_Obj
func (*DeleteI) ProtoMessage ¶
func (*DeleteI) ProtoMessage()
func (*DeleteI) ProtoReflect ¶
func (x *DeleteI) ProtoReflect() protoreflect.Message
type DeleteI_API ¶
type DeleteI_API struct {
// contains filtered or unexported fields
}
func (*DeleteI_API) Descriptor
deprecated
func (*DeleteI_API) Descriptor() ([]byte, []int)
Deprecated: Use DeleteI_API.ProtoReflect.Descriptor instead.
func (*DeleteI_API) ProtoMessage ¶
func (*DeleteI_API) ProtoMessage()
func (*DeleteI_API) ProtoReflect ¶
func (x *DeleteI_API) ProtoReflect() protoreflect.Message
func (*DeleteI_API) Reset ¶
func (x *DeleteI_API) Reset()
func (*DeleteI_API) String ¶
func (x *DeleteI_API) String() string
type DeleteI_Obj ¶
type DeleteI_Obj struct { Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DeleteI_Obj) Descriptor
deprecated
func (*DeleteI_Obj) Descriptor() ([]byte, []int)
Deprecated: Use DeleteI_Obj.ProtoReflect.Descriptor instead.
func (*DeleteI_Obj) GetMetadata ¶
func (x *DeleteI_Obj) GetMetadata() map[string]string
func (*DeleteI_Obj) ProtoMessage ¶
func (*DeleteI_Obj) ProtoMessage()
func (*DeleteI_Obj) ProtoReflect ¶
func (x *DeleteI_Obj) ProtoReflect() protoreflect.Message
func (*DeleteI_Obj) Reset ¶
func (x *DeleteI_Obj) Reset()
func (*DeleteI_Obj) String ¶
func (x *DeleteI_Obj) String() string
type DeleteO ¶
type DeleteO struct { Api *DeleteO_API `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Obj []*DeleteO_Obj `protobuf:"bytes,2,rep,name=obj,proto3" json:"obj,omitempty"` // contains filtered or unexported fields }
DeleteO is the output for deleting roles.
{ "obj": [ { "metadata": { "role.venturemark.co/status": "deleted" } } ] }
func (*DeleteO) Descriptor
deprecated
func (*DeleteO) GetApi ¶
func (x *DeleteO) GetApi() *DeleteO_API
func (*DeleteO) GetObj ¶
func (x *DeleteO) GetObj() []*DeleteO_Obj
func (*DeleteO) ProtoMessage ¶
func (*DeleteO) ProtoMessage()
func (*DeleteO) ProtoReflect ¶
func (x *DeleteO) ProtoReflect() protoreflect.Message
type DeleteO_API ¶
type DeleteO_API struct {
// contains filtered or unexported fields
}
func (*DeleteO_API) Descriptor
deprecated
func (*DeleteO_API) Descriptor() ([]byte, []int)
Deprecated: Use DeleteO_API.ProtoReflect.Descriptor instead.
func (*DeleteO_API) ProtoMessage ¶
func (*DeleteO_API) ProtoMessage()
func (*DeleteO_API) ProtoReflect ¶
func (x *DeleteO_API) ProtoReflect() protoreflect.Message
func (*DeleteO_API) Reset ¶
func (x *DeleteO_API) Reset()
func (*DeleteO_API) String ¶
func (x *DeleteO_API) String() string
type DeleteO_Obj ¶
type DeleteO_Obj struct { Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DeleteO_Obj) Descriptor
deprecated
func (*DeleteO_Obj) Descriptor() ([]byte, []int)
Deprecated: Use DeleteO_Obj.ProtoReflect.Descriptor instead.
func (*DeleteO_Obj) GetMetadata ¶
func (x *DeleteO_Obj) GetMetadata() map[string]string
func (*DeleteO_Obj) ProtoMessage ¶
func (*DeleteO_Obj) ProtoMessage()
func (*DeleteO_Obj) ProtoReflect ¶
func (x *DeleteO_Obj) ProtoReflect() protoreflect.Message
func (*DeleteO_Obj) Reset ¶
func (x *DeleteO_Obj) Reset()
func (*DeleteO_Obj) String ¶
func (x *DeleteO_Obj) String() string
type SearchI ¶
type SearchI struct { Api *SearchI_API `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Obj []*SearchI_Obj `protobuf:"bytes,2,rep,name=obj,proto3" json:"obj,omitempty"` // contains filtered or unexported fields }
SearchI is the input for searching roles.
{ "api": { "chunking": { "perpage": "100", "pointer": "300" } }, "obj": [ { "metadata": { "resource.venturemark.co/kind": "venture", "venture.venturemark.co/id": "<id>" } } ] }
func (*SearchI) Descriptor
deprecated
func (*SearchI) GetApi ¶
func (x *SearchI) GetApi() *SearchI_API
func (*SearchI) GetObj ¶
func (x *SearchI) GetObj() []*SearchI_Obj
func (*SearchI) ProtoMessage ¶
func (*SearchI) ProtoMessage()
func (*SearchI) ProtoReflect ¶
func (x *SearchI) ProtoReflect() protoreflect.Message
type SearchI_API ¶
type SearchI_API struct { Chunking *SearchI_API_Chunking `protobuf:"bytes,1,opt,name=chunking,proto3" json:"chunking,omitempty"` Operator []string `protobuf:"bytes,2,rep,name=operator,proto3" json:"operator,omitempty"` // contains filtered or unexported fields }
func (*SearchI_API) Descriptor
deprecated
func (*SearchI_API) Descriptor() ([]byte, []int)
Deprecated: Use SearchI_API.ProtoReflect.Descriptor instead.
func (*SearchI_API) GetChunking ¶
func (x *SearchI_API) GetChunking() *SearchI_API_Chunking
func (*SearchI_API) GetOperator ¶
func (x *SearchI_API) GetOperator() []string
func (*SearchI_API) ProtoMessage ¶
func (*SearchI_API) ProtoMessage()
func (*SearchI_API) ProtoReflect ¶
func (x *SearchI_API) ProtoReflect() protoreflect.Message
func (*SearchI_API) Reset ¶
func (x *SearchI_API) Reset()
func (*SearchI_API) String ¶
func (x *SearchI_API) String() string
type SearchI_API_Chunking ¶
type SearchI_API_Chunking struct { Pointer string `protobuf:"bytes,1,opt,name=pointer,proto3" json:"pointer,omitempty"` Perpage string `protobuf:"bytes,2,opt,name=perpage,proto3" json:"perpage,omitempty"` // contains filtered or unexported fields }
func (*SearchI_API_Chunking) Descriptor
deprecated
func (*SearchI_API_Chunking) Descriptor() ([]byte, []int)
Deprecated: Use SearchI_API_Chunking.ProtoReflect.Descriptor instead.
func (*SearchI_API_Chunking) GetPerpage ¶
func (x *SearchI_API_Chunking) GetPerpage() string
func (*SearchI_API_Chunking) GetPointer ¶
func (x *SearchI_API_Chunking) GetPointer() string
func (*SearchI_API_Chunking) ProtoMessage ¶
func (*SearchI_API_Chunking) ProtoMessage()
func (*SearchI_API_Chunking) ProtoReflect ¶
func (x *SearchI_API_Chunking) ProtoReflect() protoreflect.Message
func (*SearchI_API_Chunking) Reset ¶
func (x *SearchI_API_Chunking) Reset()
func (*SearchI_API_Chunking) String ¶
func (x *SearchI_API_Chunking) String() string
type SearchI_Obj ¶
type SearchI_Obj struct { Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SearchI_Obj) Descriptor
deprecated
func (*SearchI_Obj) Descriptor() ([]byte, []int)
Deprecated: Use SearchI_Obj.ProtoReflect.Descriptor instead.
func (*SearchI_Obj) GetMetadata ¶
func (x *SearchI_Obj) GetMetadata() map[string]string
func (*SearchI_Obj) ProtoMessage ¶
func (*SearchI_Obj) ProtoMessage()
func (*SearchI_Obj) ProtoReflect ¶
func (x *SearchI_Obj) ProtoReflect() protoreflect.Message
func (*SearchI_Obj) Reset ¶
func (x *SearchI_Obj) Reset()
func (*SearchI_Obj) String ¶
func (x *SearchI_Obj) String() string
type SearchO ¶
type SearchO struct { Api *SearchO_API `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Obj []*SearchO_Obj `protobuf:"bytes,2,rep,name=obj,proto3" json:"obj,omitempty"` // contains filtered or unexported fields }
SearchO is the output for searching roles.
{ "api": { "chunking": { "perpage": "100", "pointer": "300" } }, "obj": [ { "metadata": { "resource.venturemark.co/kind": "venture", "role.venturemark.co/id": "<id>", "role.venturemark.co/kind": "owner", "subject.venturemark.co/id": "<id>", "venture.venturemark.co/id": "<id>" } } ] }
func (*SearchO) Descriptor
deprecated
func (*SearchO) GetApi ¶
func (x *SearchO) GetApi() *SearchO_API
func (*SearchO) GetObj ¶
func (x *SearchO) GetObj() []*SearchO_Obj
func (*SearchO) ProtoMessage ¶
func (*SearchO) ProtoMessage()
func (*SearchO) ProtoReflect ¶
func (x *SearchO) ProtoReflect() protoreflect.Message
type SearchO_API ¶
type SearchO_API struct { Chunking *SearchO_API_Chunking `protobuf:"bytes,1,opt,name=chunking,proto3" json:"chunking,omitempty"` // contains filtered or unexported fields }
func (*SearchO_API) Descriptor
deprecated
func (*SearchO_API) Descriptor() ([]byte, []int)
Deprecated: Use SearchO_API.ProtoReflect.Descriptor instead.
func (*SearchO_API) GetChunking ¶
func (x *SearchO_API) GetChunking() *SearchO_API_Chunking
func (*SearchO_API) ProtoMessage ¶
func (*SearchO_API) ProtoMessage()
func (*SearchO_API) ProtoReflect ¶
func (x *SearchO_API) ProtoReflect() protoreflect.Message
func (*SearchO_API) Reset ¶
func (x *SearchO_API) Reset()
func (*SearchO_API) String ¶
func (x *SearchO_API) String() string
type SearchO_API_Chunking ¶
type SearchO_API_Chunking struct { Pointer string `protobuf:"bytes,1,opt,name=pointer,proto3" json:"pointer,omitempty"` Perpage string `protobuf:"bytes,2,opt,name=perpage,proto3" json:"perpage,omitempty"` // contains filtered or unexported fields }
func (*SearchO_API_Chunking) Descriptor
deprecated
func (*SearchO_API_Chunking) Descriptor() ([]byte, []int)
Deprecated: Use SearchO_API_Chunking.ProtoReflect.Descriptor instead.
func (*SearchO_API_Chunking) GetPerpage ¶
func (x *SearchO_API_Chunking) GetPerpage() string
func (*SearchO_API_Chunking) GetPointer ¶
func (x *SearchO_API_Chunking) GetPointer() string
func (*SearchO_API_Chunking) ProtoMessage ¶
func (*SearchO_API_Chunking) ProtoMessage()
func (*SearchO_API_Chunking) ProtoReflect ¶
func (x *SearchO_API_Chunking) ProtoReflect() protoreflect.Message
func (*SearchO_API_Chunking) Reset ¶
func (x *SearchO_API_Chunking) Reset()
func (*SearchO_API_Chunking) String ¶
func (x *SearchO_API_Chunking) String() string
type SearchO_Obj ¶
type SearchO_Obj struct { Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SearchO_Obj) Descriptor
deprecated
func (*SearchO_Obj) Descriptor() ([]byte, []int)
Deprecated: Use SearchO_Obj.ProtoReflect.Descriptor instead.
func (*SearchO_Obj) GetMetadata ¶
func (x *SearchO_Obj) GetMetadata() map[string]string
func (*SearchO_Obj) ProtoMessage ¶
func (*SearchO_Obj) ProtoMessage()
func (*SearchO_Obj) ProtoReflect ¶
func (x *SearchO_Obj) ProtoReflect() protoreflect.Message
func (*SearchO_Obj) Reset ¶
func (x *SearchO_Obj) Reset()
func (*SearchO_Obj) String ¶
func (x *SearchO_Obj) String() string
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer must be embedded to have forward compatible implementations.
type UnsafeAPIServer ¶
type UnsafeAPIServer interface {
// contains filtered or unexported methods
}
UnsafeAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServer will result in compilation errors.
type UpdateI ¶
type UpdateI struct { Api *UpdateI_API `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Obj []*UpdateI_Obj `protobuf:"bytes,2,rep,name=obj,proto3" json:"obj,omitempty"` // contains filtered or unexported fields }
UpdateI is the input for updating roles.
{ "obj": [ { "metadata": { "resource.venturemark.co/kind": "venture", "role.venturemark.co/id": "<id>", "venture.venturemark.co/id": "<id>" }, "jsnpatch": [ { "ope": "replace", "pat": "/obj/metadata/role.venturemark.co~1kind", "val": "member" } ] } ] }
func (*UpdateI) Descriptor
deprecated
func (*UpdateI) GetApi ¶
func (x *UpdateI) GetApi() *UpdateI_API
func (*UpdateI) GetObj ¶
func (x *UpdateI) GetObj() []*UpdateI_Obj
func (*UpdateI) ProtoMessage ¶
func (*UpdateI) ProtoMessage()
func (*UpdateI) ProtoReflect ¶
func (x *UpdateI) ProtoReflect() protoreflect.Message
type UpdateI_API ¶
type UpdateI_API struct {
// contains filtered or unexported fields
}
func (*UpdateI_API) Descriptor
deprecated
func (*UpdateI_API) Descriptor() ([]byte, []int)
Deprecated: Use UpdateI_API.ProtoReflect.Descriptor instead.
func (*UpdateI_API) ProtoMessage ¶
func (*UpdateI_API) ProtoMessage()
func (*UpdateI_API) ProtoReflect ¶
func (x *UpdateI_API) ProtoReflect() protoreflect.Message
func (*UpdateI_API) Reset ¶
func (x *UpdateI_API) Reset()
func (*UpdateI_API) String ¶
func (x *UpdateI_API) String() string
type UpdateI_Obj ¶
type UpdateI_Obj struct { Metadata map[string]string `` /* 157-byte string literal not displayed */ Jsnpatch []*UpdateI_Obj_Jsnpatch `protobuf:"bytes,2,rep,name=jsnpatch,proto3" json:"jsnpatch,omitempty"` // contains filtered or unexported fields }
func (*UpdateI_Obj) Descriptor
deprecated
func (*UpdateI_Obj) Descriptor() ([]byte, []int)
Deprecated: Use UpdateI_Obj.ProtoReflect.Descriptor instead.
func (*UpdateI_Obj) GetJsnpatch ¶
func (x *UpdateI_Obj) GetJsnpatch() []*UpdateI_Obj_Jsnpatch
func (*UpdateI_Obj) GetMetadata ¶
func (x *UpdateI_Obj) GetMetadata() map[string]string
func (*UpdateI_Obj) ProtoMessage ¶
func (*UpdateI_Obj) ProtoMessage()
func (*UpdateI_Obj) ProtoReflect ¶
func (x *UpdateI_Obj) ProtoReflect() protoreflect.Message
func (*UpdateI_Obj) Reset ¶
func (x *UpdateI_Obj) Reset()
func (*UpdateI_Obj) String ¶
func (x *UpdateI_Obj) String() string
type UpdateI_Obj_Jsnpatch ¶
type UpdateI_Obj_Jsnpatch struct { Ope string `protobuf:"bytes,1,opt,name=ope,proto3" json:"ope,omitempty"` Pat string `protobuf:"bytes,2,opt,name=pat,proto3" json:"pat,omitempty"` Val *string `protobuf:"bytes,3,opt,name=val,proto3,oneof" json:"val,omitempty"` // contains filtered or unexported fields }
func (*UpdateI_Obj_Jsnpatch) Descriptor
deprecated
func (*UpdateI_Obj_Jsnpatch) Descriptor() ([]byte, []int)
Deprecated: Use UpdateI_Obj_Jsnpatch.ProtoReflect.Descriptor instead.
func (*UpdateI_Obj_Jsnpatch) GetOpe ¶
func (x *UpdateI_Obj_Jsnpatch) GetOpe() string
func (*UpdateI_Obj_Jsnpatch) GetPat ¶
func (x *UpdateI_Obj_Jsnpatch) GetPat() string
func (*UpdateI_Obj_Jsnpatch) GetVal ¶
func (x *UpdateI_Obj_Jsnpatch) GetVal() string
func (*UpdateI_Obj_Jsnpatch) ProtoMessage ¶
func (*UpdateI_Obj_Jsnpatch) ProtoMessage()
func (*UpdateI_Obj_Jsnpatch) ProtoReflect ¶
func (x *UpdateI_Obj_Jsnpatch) ProtoReflect() protoreflect.Message
func (*UpdateI_Obj_Jsnpatch) Reset ¶
func (x *UpdateI_Obj_Jsnpatch) Reset()
func (*UpdateI_Obj_Jsnpatch) String ¶
func (x *UpdateI_Obj_Jsnpatch) String() string
type UpdateO ¶
type UpdateO struct { Api *UpdateO_API `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"` Obj []*UpdateO_Obj `protobuf:"bytes,2,rep,name=obj,proto3" json:"obj,omitempty"` // contains filtered or unexported fields }
UpdateO is the output for updating roles. The response will contain object metadata to indicate if the role got in fact updated. The example below indicates that the role got updated.
{ "obj": [ { "metadata": { "role.venturemark.co/status": "updated" } } ] }
func (*UpdateO) Descriptor
deprecated
func (*UpdateO) GetApi ¶
func (x *UpdateO) GetApi() *UpdateO_API
func (*UpdateO) GetObj ¶
func (x *UpdateO) GetObj() []*UpdateO_Obj
func (*UpdateO) ProtoMessage ¶
func (*UpdateO) ProtoMessage()
func (*UpdateO) ProtoReflect ¶
func (x *UpdateO) ProtoReflect() protoreflect.Message
type UpdateO_API ¶
type UpdateO_API struct {
// contains filtered or unexported fields
}
func (*UpdateO_API) Descriptor
deprecated
func (*UpdateO_API) Descriptor() ([]byte, []int)
Deprecated: Use UpdateO_API.ProtoReflect.Descriptor instead.
func (*UpdateO_API) ProtoMessage ¶
func (*UpdateO_API) ProtoMessage()
func (*UpdateO_API) ProtoReflect ¶
func (x *UpdateO_API) ProtoReflect() protoreflect.Message
func (*UpdateO_API) Reset ¶
func (x *UpdateO_API) Reset()
func (*UpdateO_API) String ¶
func (x *UpdateO_API) String() string
type UpdateO_Obj ¶
type UpdateO_Obj struct { Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UpdateO_Obj) Descriptor
deprecated
func (*UpdateO_Obj) Descriptor() ([]byte, []int)
Deprecated: Use UpdateO_Obj.ProtoReflect.Descriptor instead.
func (*UpdateO_Obj) GetMetadata ¶
func (x *UpdateO_Obj) GetMetadata() map[string]string
func (*UpdateO_Obj) ProtoMessage ¶
func (*UpdateO_Obj) ProtoMessage()
func (*UpdateO_Obj) ProtoReflect ¶
func (x *UpdateO_Obj) ProtoReflect() protoreflect.Message
func (*UpdateO_Obj) Reset ¶
func (x *UpdateO_Obj) Reset()
func (*UpdateO_Obj) String ¶
func (x *UpdateO_Obj) String() string