Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MacaroonCmd is a subcommand for macaroons MacaroonCmd = &cobra.Command{ Use: "macaroon", Short: "macaroon subcommand", } // MacaroonCreateCmd generates a macaroon MacaroonCreateCmd = &cobra.Command{ Use: "create", Short: "create a macaroon", Run: cmd.Perform("macaroon creation", RunMacaroonCreate), } )
Functions ¶
Types ¶
type Token ¶
type Token struct { ID string `yaml:"id"` Version int `yaml:"version"` Location string `yaml:"location"` FirstPartyCaveats []Caveats `yaml:"first_party_caveats"` }
Token - configuration representation of token metadata attributes
type TokenConfig ¶
type TokenConfig struct {
Tokens []Token `yaml:"tokens"`
}
TokenConfig - structure of the token configuration file
func (*TokenConfig) Parse ¶
func (tc *TokenConfig) Parse(path string) (err error)
Parse - Parse the token configuration file
Click to show internal directories.
Click to hide internal directories.