Documentation ¶
Index ¶
- func VerifyToken(accessKey string, token string) (common.Credential, error)
- type FederationToken
- func (*FederationToken) Descriptor() ([]byte, []int)
- func (m *FederationToken) GetAccessKey() string
- func (m *FederationToken) GetAllowAction() []string
- func (m *FederationToken) GetAllowResource() []string
- func (m *FederationToken) GetExpiration() string
- func (m *FederationToken) GetName() string
- func (m *FederationToken) GetOriginalUser() string
- func (m *FederationToken) GetSecretKey() string
- func (m *FederationToken) PackV1(key []byte) (string, error)
- func (*FederationToken) ProtoMessage()
- func (m *FederationToken) Reset()
- func (m *FederationToken) String() string
- func (m *FederationToken) XXX_DiscardUnknown()
- func (m *FederationToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FederationToken) XXX_Merge(src proto.Message)
- func (m *FederationToken) XXX_Size() int
- func (m *FederationToken) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyToken ¶
func VerifyToken(accessKey string, token string) (common.Credential, error)
Types ¶
type FederationToken ¶
type FederationToken struct { AccessKey string `protobuf:"bytes,1,opt,name=AccessKey,proto3" json:"AccessKey,omitempty"` SecretKey string `protobuf:"bytes,2,opt,name=SecretKey,proto3" json:"SecretKey,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` OriginalUser string `protobuf:"bytes,4,opt,name=OriginalUser,proto3" json:"OriginalUser,omitempty"` AllowAction []string `protobuf:"bytes,5,rep,name=AllowAction,proto3" json:"AllowAction,omitempty"` AllowResource []string `protobuf:"bytes,6,rep,name=AllowResource,proto3" json:"AllowResource,omitempty"` Expiration string `protobuf:"bytes,7,opt,name=Expiration,proto3" json:"Expiration,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FederationToken) Descriptor ¶
func (*FederationToken) Descriptor() ([]byte, []int)
func (*FederationToken) GetAccessKey ¶
func (m *FederationToken) GetAccessKey() string
func (*FederationToken) GetAllowAction ¶
func (m *FederationToken) GetAllowAction() []string
func (*FederationToken) GetAllowResource ¶
func (m *FederationToken) GetAllowResource() []string
func (*FederationToken) GetExpiration ¶
func (m *FederationToken) GetExpiration() string
func (*FederationToken) GetName ¶
func (m *FederationToken) GetName() string
func (*FederationToken) GetOriginalUser ¶
func (m *FederationToken) GetOriginalUser() string
func (*FederationToken) GetSecretKey ¶
func (m *FederationToken) GetSecretKey() string
func (*FederationToken) ProtoMessage ¶
func (*FederationToken) ProtoMessage()
func (*FederationToken) Reset ¶
func (m *FederationToken) Reset()
func (*FederationToken) String ¶
func (m *FederationToken) String() string
func (*FederationToken) XXX_DiscardUnknown ¶
func (m *FederationToken) XXX_DiscardUnknown()
func (*FederationToken) XXX_Marshal ¶
func (m *FederationToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FederationToken) XXX_Merge ¶
func (m *FederationToken) XXX_Merge(src proto.Message)
func (*FederationToken) XXX_Size ¶
func (m *FederationToken) XXX_Size() int
func (*FederationToken) XXX_Unmarshal ¶
func (m *FederationToken) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.