Documentation ¶
Index ¶
- Variables
- type Algorithm
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) GetAccount() uint64
- func (m *Info) GetAlgorithm() Algorithm
- func (m *Info) GetExpiredAt() *timestamp.Timestamp
- func (m *Info) GetIssuedAt() *timestamp.Timestamp
- func (m *Info) GetIssuer() string
- func (m *Info) GetKeyId() int64
- func (m *Info) GetRoles() []string
- func (m *Info) GetSubject() permission.Subject
- func (m *Info) GetType() Type
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) String() string
- func (m *Info) XXX_DiscardUnknown()
- func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Info) XXX_Merge(src proto.Message)
- func (m *Info) XXX_Size() int
- func (m *Info) XXX_Unmarshal(b []byte) error
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var Algorithm_name = map[int32]string{
0: "None",
1: "HMAC",
2: "RSA",
3: "PSS",
4: "ECDSA",
5: "EdDSA",
}
View Source
var Algorithm_value = map[string]int32{
"None": 0,
"HMAC": 1,
"RSA": 2,
"PSS": 3,
"ECDSA": 4,
"EdDSA": 5,
}
View Source
var Type_name = map[int32]string{
0: "CLIENT",
1: "SERVER",
}
View Source
var Type_value = map[string]int32{
"CLIENT": 0,
"SERVER": 1,
}
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=appootb.secret.Type" json:"type,omitempty"` Algorithm Algorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=appootb.secret.Algorithm" json:"algorithm,omitempty"` Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"` Account uint64 `protobuf:"varint,4,opt,name=account,proto3" json:"account,omitempty"` KeyId int64 `protobuf:"varint,5,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"` Subject permission.Subject `protobuf:"varint,11,opt,name=subject,proto3,enum=appootb.permission.method.Subject" json:"subject,omitempty"` IssuedAt *timestamp.Timestamp `protobuf:"bytes,21,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"` ExpiredAt *timestamp.Timestamp `protobuf:"bytes,22,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Token secret info.
func (*Info) Descriptor ¶
func (*Info) GetAccount ¶
func (*Info) GetAlgorithm ¶
func (*Info) GetExpiredAt ¶
func (*Info) GetIssuedAt ¶
func (*Info) GetSubject ¶
func (m *Info) GetSubject() permission.Subject
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) XXX_DiscardUnknown ¶
func (m *Info) XXX_DiscardUnknown()
func (*Info) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.