Documentation
¶
Index ¶
- func DecodeMacaroonFromBase64(b64 string, urlunescape bool) (*flyio_macaroon.Macaroon, error)
- func EncodeMacaroonAsBase64(m *macaroon.Macaroon, urlescape bool) (string, error)
- func IsExpired(m *flyio_macaroon.Macaroon) bool
- func NewEncryptionKey(ctx context.Context, key_uri string) (flyio_macaroon.EncryptionKey, error)
- func NewMacaroon(ctx context.Context, uri string) (*flyio_macaroon.Macaroon, error)
- func NewMacaroonURI(loc string, key string, duration string) (string, error)
- func NewMacaroonWithOptions(ctx context.Context, opts *NewMacaroonOptions) (*flyio_macaroon.Macaroon, error)
- func NewSigningKey(ctx context.Context, key_uri string) (flyio_macaroon.SigningKey, error)
- type NewMacaroonOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeMacaroonFromBase64 ¶
func DecodeMacaroonFromBase64(b64 string, urlunescape bool) (*flyio_macaroon.Macaroon, error)
func EncodeMacaroonAsBase64 ¶
func IsExpired ¶
func IsExpired(m *flyio_macaroon.Macaroon) bool
func NewEncryptionKey ¶
func NewEncryptionKey(ctx context.Context, key_uri string) (flyio_macaroon.EncryptionKey, error)
func NewMacaroon ¶
func NewMacaroonWithOptions ¶
func NewMacaroonWithOptions(ctx context.Context, opts *NewMacaroonOptions) (*flyio_macaroon.Macaroon, error)
func NewSigningKey ¶
func NewSigningKey(ctx context.Context, key_uri string) (flyio_macaroon.SigningKey, error)
Types ¶
type NewMacaroonOptions ¶
type NewMacaroonOptions struct {
SigningKey flyio_macaroon.SigningKey
Duration time.Duration
Location string
Body []byte
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
encryption-key
command
Generate a random base64-encoded Macaroon encyption key.
|
Generate a random base64-encoded Macaroon encyption key. |
|
new-macaroon
command
Generate a new Macaroon token and emit it as a base64-encoded string.
|
Generate a new Macaroon token and emit it as a base64-encoded string. |
|
signing-key
command
Generate a random base64-encoded Macaroon signing key.
|
Generate a random base64-encoded Macaroon signing key. |
|
tp-ensure-account
command
Append a "ensure account" caveat to discharge with a third-party to a Macaroon token and emit it as a base64-encoded string.
|
Append a "ensure account" caveat to discharge with a third-party to a Macaroon token and emit it as a base64-encoded string. |
Click to show internal directories.
Click to hide internal directories.