Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTypes []Type = maps.Keys(TypeTypeNumber)
View Source
var TypePrefix map[Type]string = map[Type]string{ Root: "ro", Parent: "pa", ServerCert: "sc", ClientCert: "cc", ClientServerCert: "cs", }
View Source
var TypeString map[TypeNumber]Type = map[TypeNumber]Type{ RootNumber: Root, ParentNumber: Parent, ServerCertNumber: ServerCert, ClientCertNumber: ClientCert, ClientServerCertNumber: ClientServerCert, }
View Source
var TypeTypeNumber map[Type]TypeNumber = map[Type]TypeNumber{ Root: RootNumber, ServerCert: ServerCertNumber, ClientCert: ClientCertNumber, ClientServerCert: ClientServerCertNumber, Parent: ParentNumber, }
Functions ¶
Types ¶
type CreateStruct ¶
type CreateStruct struct { Type Type `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 Store ¶
type Token ¶
type Token struct { Type Type Expiration time.Time Policies []string Parent string Metadata map[string]string MaxTTL time.Duration }
func NewToken ¶
type TypeNumber ¶ added in v2.0.6
type TypeNumber uint16
const ( RootNumber TypeNumber = iota ParentNumber ServerCertNumber ClientCertNumber ClientServerCertNumber )
Click to show internal directories.
Click to hide internal directories.