Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StringType map[string]Type = map[string]Type{ "server_cert": TokenServerCert, "client_cert": TokenClientCert, "client_server_cert": TokenClientServerCert, "parent": TokenParent, }
View Source
var TypePrefix map[Type]string = map[Type]string{ TokenRoot: "ro", TokenParent: "pa", TokenServerCert: "sc", TokenClientCert: "cc", TokenClientServerCert: "cs", }
View Source
var TypeString map[Type]string = map[Type]string{ TokenRoot: "root", TokenParent: "Parent", TokenServerCert: "server_cert", TokenClientCert: "client_cert", TokenClientServerCert: "client_server_cert", }
Functions ¶
This section is empty.
Types ¶
type CreateStruct ¶
type CreateStruct struct { Type string `json:"type" example:"client_cert"` Policies []string `json:"Policies" example:"policy1,policy2"` Meta map[string]string `json:"meta" example:"key1:value1,key2:value2"` TTL string `json:"ttl" example:"1000h"` MaxTTL string `json:"maxttl" example:"3h"` Renewable bool `json:"renewable" example:"false"` }
type Manager ¶
func NewManager ¶
type Token ¶
type Token struct { T Type Expiration time.Time Policies []string Parent string Metadata map[string]string MaxTTL time.Duration }
func (*Token) GetExpiration ¶
func (*Token) GetMetadata ¶
func (*Token) GetPolicies ¶
func (*Token) MarshalBinary ¶
func (*Token) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.