flyio

package
v0.46.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient(context context.Context, opts ...Opt) *http.Client

func NewTokenSource

func NewTokenSource(opts ...Opt) oauth2.TokenSource

NewTokenSource: https://fly.io/docs/security/openid-connect/

func NewUnixSocketClient added in v0.43.0

func NewUnixSocketClient(path string) *http.Client

Types

type Claims

type Claims struct {
	AppId          string `json:"app_id"`
	AppName        string `json:"app_name"`
	Aud            string `json:"aud"`
	Exp            int    `json:"exp"`
	Iat            int    `json:"iat"`
	Image          string `json:"image"`
	ImageDigest    string `json:"image_digest"`
	Iss            string `json:"iss"`
	Jti            string `json:"jti"`
	MachineId      string `json:"machine_id"`
	MachineName    string `json:"machine_name"`
	MachineVersion string `json:"machine_version"`
	Nbf            int    `json:"nbf"`
	OrgId          string `json:"org_id"`
	OrgName        string `json:"org_name"`
	Region         string `json:"region"`
	Sub            string `json:"sub"`
}

func (*Claims) Validate added in v0.42.5

func (c *Claims) Validate(ctx context.Context) error

type Opt

type Opt func(*tokenSource)

func WithAudience

func WithAudience(aud string) Opt

Jump to

Keyboard shortcuts

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