checker

package
v1.73.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetParams

func SetParams(input *go_hook.HookInput, params Params) error

Types

type Params

type Params struct {
	Registries map[string]RegistryParams    `json:"registries,omitempty"`
	CheckMode  registry_const.CheckModeType `json:"checkMode,omitempty"`
	Version    string                       `json:"version,omitempty"`
}

func GetParams

func GetParams(_ context.Context, input *go_hook.HookInput) Params

func (Params) Validate

func (params Params) Validate() error

type RegistryParams

type RegistryParams struct {
	Address  string `json:"address,omitempty"`
	Scheme   string `json:"scheme,omitempty"`
	CA       string `json:"ca,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

func (RegistryParams) Validate

func (rp RegistryParams) Validate() error

type Status

type Status struct {
	Version string `json:"version,omitempty"`
	Ready   bool   `json:"ready"`
	Message string `json:"message,omitempty"`
}

func GetStatus

func GetStatus(_ context.Context, input *go_hook.HookInput) Status

Jump to

Keyboard shortcuts

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