sts

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 UnpackV1

func UnpackV1(key []byte, data string) (FederationToken, error)

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) PackV1

func (m *FederationToken) PackV1(key []byte) (string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL