Documentation
¶
Overview ¶
Package secret_service is a generated protocol buffer package.
It is generated from these files:
service.proto
It has these top-level messages:
ObjectIdMessage SecretServiceRequest SecretServiceResponse
Index ¶
- Variables
- func CreateObject(l *list.List, newId, protectorId *protected_objects.ObjectIdMessage, ...) error
- func DeleteObject(l *list.List, id *protected_objects.ObjectIdMessage, program *auth.Prin, ...) error
- func ReadObject(l *list.List, encKey *tao.Keys, id *protected_objects.ObjectIdMessage, ...) (*string, []byte, error)
- func WriteObject(l *list.List, encKey *tao.Keys, id *protected_objects.ObjectIdMessage, ...) error
- type ObjectIdMessage
- type SecretServiceRequest
- func (*SecretServiceRequest) Descriptor() ([]byte, []int)
- func (m *SecretServiceRequest) GetNewSecretId() *ObjectIdMessage
- func (m *SecretServiceRequest) GetNewSecretType() string
- func (m *SecretServiceRequest) GetNewSecretVal() []byte
- func (m *SecretServiceRequest) GetOp() SecretServiceRequestOperationType
- func (m *SecretServiceRequest) GetProtectorId() *ObjectIdMessage
- func (m *SecretServiceRequest) GetSecretId() *ObjectIdMessage
- func (*SecretServiceRequest) ProtoMessage()
- func (m *SecretServiceRequest) Reset()
- func (m *SecretServiceRequest) String() string
- type SecretServiceRequestOperationType
- type SecretServiceResponse
- func (*SecretServiceResponse) Descriptor() ([]byte, []int)
- func (m *SecretServiceResponse) GetErrorMessage() string
- func (m *SecretServiceResponse) GetSecretType() string
- func (m *SecretServiceResponse) GetSecretVal() []byte
- func (*SecretServiceResponse) ProtoMessage()
- func (m *SecretServiceResponse) Reset()
- func (m *SecretServiceResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var SecretServiceRequestOperationType_name = map[int32]string{
1: "READ",
2: "WRITE",
3: "CREATE",
4: "DELETE",
}
View Source
var SecretServiceRequestOperationType_value = map[string]int32{
"READ": 1,
"WRITE": 2,
"CREATE": 3,
"DELETE": 4,
}
Functions ¶
func CreateObject ¶
func DeleteObject ¶
func DeleteObject(l *list.List, id *protected_objects.ObjectIdMessage, program *auth.Prin, domain *tao.Domain) error
func ReadObject ¶
func WriteObject ¶
Types ¶
type ObjectIdMessage ¶
type ObjectIdMessage struct { ObjName *string `protobuf:"bytes,1,req,name=obj_name" json:"obj_name,omitempty"` ObjEpoch *int32 `protobuf:"varint,2,opt,name=obj_epoch" json:"obj_epoch,omitempty"` XXX_unrecognized []byte `json:"-"` }
Epochs must increase monotonically and be > 0
func (*ObjectIdMessage) Descriptor ¶
func (*ObjectIdMessage) Descriptor() ([]byte, []int)
func (*ObjectIdMessage) GetObjEpoch ¶
func (m *ObjectIdMessage) GetObjEpoch() int32
func (*ObjectIdMessage) GetObjName ¶
func (m *ObjectIdMessage) GetObjName() string
func (*ObjectIdMessage) ProtoMessage ¶
func (*ObjectIdMessage) ProtoMessage()
func (*ObjectIdMessage) Reset ¶
func (m *ObjectIdMessage) Reset()
func (*ObjectIdMessage) String ¶
func (m *ObjectIdMessage) String() string
type SecretServiceRequest ¶
type SecretServiceRequest struct { Op *SecretServiceRequestOperationType `protobuf:"varint,1,opt,name=op,enum=secret_service.SecretServiceRequestOperationType" json:"op,omitempty"` SecretId *ObjectIdMessage `protobuf:"bytes,2,opt,name=secret_id" json:"secret_id,omitempty"` // Fields for type: WRITE. NewSecretType *string `protobuf:"bytes,3,opt,name=new_secret_type" json:"new_secret_type,omitempty"` NewSecretVal []byte `protobuf:"bytes,4,opt,name=new_secret_val" json:"new_secret_val,omitempty"` // Fields for type: CREATE (in addition to above fields). NewSecretId *ObjectIdMessage `protobuf:"bytes,5,opt,name=new_secret_id" json:"new_secret_id,omitempty"` ProtectorId *ObjectIdMessage `protobuf:"bytes,6,opt,name=protector_id" json:"protector_id,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SecretServiceRequest) Descriptor ¶
func (*SecretServiceRequest) Descriptor() ([]byte, []int)
func (*SecretServiceRequest) GetNewSecretId ¶
func (m *SecretServiceRequest) GetNewSecretId() *ObjectIdMessage
func (*SecretServiceRequest) GetNewSecretType ¶
func (m *SecretServiceRequest) GetNewSecretType() string
func (*SecretServiceRequest) GetNewSecretVal ¶
func (m *SecretServiceRequest) GetNewSecretVal() []byte
func (*SecretServiceRequest) GetOp ¶
func (m *SecretServiceRequest) GetOp() SecretServiceRequestOperationType
func (*SecretServiceRequest) GetProtectorId ¶
func (m *SecretServiceRequest) GetProtectorId() *ObjectIdMessage
func (*SecretServiceRequest) GetSecretId ¶
func (m *SecretServiceRequest) GetSecretId() *ObjectIdMessage
func (*SecretServiceRequest) ProtoMessage ¶
func (*SecretServiceRequest) ProtoMessage()
func (*SecretServiceRequest) Reset ¶
func (m *SecretServiceRequest) Reset()
func (*SecretServiceRequest) String ¶
func (m *SecretServiceRequest) String() string
type SecretServiceRequestOperationType ¶
type SecretServiceRequestOperationType int32
const ( SecretServiceRequest_READ SecretServiceRequestOperationType = 1 SecretServiceRequest_WRITE SecretServiceRequestOperationType = 2 SecretServiceRequest_CREATE SecretServiceRequestOperationType = 3 SecretServiceRequest_DELETE SecretServiceRequestOperationType = 4 )
func (SecretServiceRequestOperationType) Enum ¶
func (x SecretServiceRequestOperationType) Enum() *SecretServiceRequestOperationType
func (SecretServiceRequestOperationType) EnumDescriptor ¶
func (SecretServiceRequestOperationType) EnumDescriptor() ([]byte, []int)
func (SecretServiceRequestOperationType) String ¶
func (x SecretServiceRequestOperationType) String() string
func (*SecretServiceRequestOperationType) UnmarshalJSON ¶
func (x *SecretServiceRequestOperationType) UnmarshalJSON(data []byte) error
type SecretServiceResponse ¶
type SecretServiceResponse struct { ErrorMessage *string `protobuf:"bytes,1,opt,name=error_message" json:"error_message,omitempty"` // Fields for response to READ. SecretType *string `protobuf:"bytes,2,opt,name=secret_type" json:"secret_type,omitempty"` SecretVal []byte `protobuf:"bytes,3,opt,name=secret_val" json:"secret_val,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SecretServiceResponse) Descriptor ¶
func (*SecretServiceResponse) Descriptor() ([]byte, []int)
func (*SecretServiceResponse) GetErrorMessage ¶
func (m *SecretServiceResponse) GetErrorMessage() string
func (*SecretServiceResponse) GetSecretType ¶
func (m *SecretServiceResponse) GetSecretType() string
func (*SecretServiceResponse) GetSecretVal ¶
func (m *SecretServiceResponse) GetSecretVal() []byte
func (*SecretServiceResponse) ProtoMessage ¶
func (*SecretServiceResponse) ProtoMessage()
func (*SecretServiceResponse) Reset ¶
func (m *SecretServiceResponse) Reset()
func (*SecretServiceResponse) String ¶
func (m *SecretServiceResponse) String() string
Click to show internal directories.
Click to hide internal directories.