zotcredentials

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaVersion = 1

	DefaultSecretsDir   = "/etc/gha-fleet/secrets"
	DefaultHTPasswdPath = "/etc/gha-fleet/secrets/zot.htpasswd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity struct {
	Role         string `json:"role"`
	Username     string `json:"username"`
	UsernameFile string `json:"username_file"`
	PasswordFile string `json:"password_file"`
}

func Identities

func Identities() []Identity

type Options

type Options struct {
	SecretsDirectory string
	HTPasswdPath     string
	Apply            bool
	OwnerUID         int
	OwnerGID         int
}

type Result

type Result struct {
	SchemaVersion int        `json:"schema_version"`
	Applied       bool       `json:"applied"`
	StateBefore   string     `json:"state_before"`
	StateAfter    string     `json:"state_after"`
	Actions       []string   `json:"actions"`
	Identities    []Identity `json:"identities"`
}

type Runner

type Runner struct {
	Random       io.Reader
	HashPassword func([]byte) ([]byte, error)
	CompareHash  func([]byte, []byte) error
}

func (Runner) Run

func (r Runner) Run(options Options) (Result, error)

Jump to

Keyboard shortcuts

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