Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClientTypeProducer = ClientType(iota + 1) ClientTypeConsumer )
Variables ¶
This section is empty.
Functions ¶
func GetSecurityToken ¶
Types ¶
type ClientType ¶
type ClientType int
func (ClientType) String ¶
func (ct ClientType) String() string
type Identity ¶
type Identity struct {
// contains filtered or unexported fields
}
func NewIdentity ¶
func NewIdentity(name string, group string, clntType ClientType) *Identity
func (*Identity) Credential ¶
format:
accessKey = <name> + "|" + <clientType> + "|" + <group> securityToken = hmac(accessKey, skHashToken)
func (*Identity) Type ¶
func (id *Identity) Type() ClientType
Click to show internal directories.
Click to hide internal directories.