auth

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerAuth

type DockerAuth struct {
	Auths map[string]Item `json:"auths"`
}

func (*DockerAuth) Get

func (d *DockerAuth) Get(domain string) (string, string, error)

type DockerAuthService

type DockerAuthService struct {
	FilePath    string
	AuthContent DockerAuth `json:"auths"`
}

func NewDockerAuthService

func NewDockerAuthService() (DockerAuthService, error)

func (*DockerAuthService) GetAuthByDomain

func (s *DockerAuthService) GetAuthByDomain(domain string) (types.AuthConfig, error)

type Item

type Item struct {
	Auth string `json:"auth"`
}

Jump to

Keyboard shortcuts

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