value

package
v0.0.0-...-8804062 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTTL time.Duration = 5 * time.Minute

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Scopes   []string      `json:"scopes"`
	Username string        `json:"username"`
	Password string        `json:"password"`
	TTL      time.Duration `json:"ttl"`
	MaxTTL   time.Duration `json:"max_ttl"`
}

Config holds to values needed to issue a new Docker Hub access token

func NewConfig

func NewConfig(username, password string, scopes []string) (*Config, error)

Jump to

Keyboard shortcuts

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