flyio

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient(ctx 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 {
	jwtvalidator.RegisteredClaims
	CustomClaims
}

func (*Claims) Validate added in v0.42.5

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

type CustomClaims added in v0.53.0

type CustomClaims struct {
	// Fly.io specific claims
	AppId          string `json:"app_id"`
	AppName        string `json:"app_name"`
	Image          string `json:"image"`
	ImageDigest    string `json:"image_digest"`
	MachineId      string `json:"machine_id"`
	MachineName    string `json:"machine_name"`
	MachineVersion string `json:"machine_version"`
	OrgId          string `json:"org_id"`
	OrgName        string `json:"org_name"`
	Region         string `json:"region"`
}

CustomClaims represents the custom claims in a Fly.io OIDC token

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