users

package
v1.73.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecretNamePrefix = "registry-user-"
)

Variables

This section is empty.

Functions

func KubernetsConfig

func KubernetsConfig(name string) go_hook.KubernetesConfig

func SecretName

func SecretName(name string) string

Types

type Inputs

type Inputs map[string]User

func InputsFromSnapshot

func InputsFromSnapshot(input *go_hook.HookInput, name string) (Inputs, error)

type Params

type Params struct {
	RO bool `json:"ro,omitempty"`
}

func (Params) Any

func (params Params) Any() bool

type State

type State struct {
	RO           *User `json:"ro,omitempty"`
	RW           *User `json:"rw,omitempty"`
	MirrorPuller *User `json:"mirror_puller,omitempty"`
	MirrorPusher *User `json:"mirror_pusher,omitempty"`
}

func (*State) GetParams

func (state *State) GetParams() Params

func (*State) Process

func (state *State) Process(params Params, inputs Inputs) error

type User

type User = users.User

Jump to

Keyboard shortcuts

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