inclusterproxy

package
v1.73.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KubernetesConfig

func KubernetesConfig(name string) go_hook.KubernetesConfig

Types

type DeploymentStatus

type DeploymentStatus struct {
	IsExist  bool
	IsReady  bool
	ReadyMsg string
	Version  string
}

type InclusterProxyConfig

type InclusterProxyConfig struct {
	CACert           string                 `json:"ca" yaml:"ca"`
	AuthCert         string                 `json:"auth_cert" yaml:"auth_cert"`
	AuthKey          string                 `json:"auth_key" yaml:"auth_key"`
	TokenCert        string                 `json:"token_cert" yaml:"token_cert"`
	TokenKey         string                 `json:"token_key" yaml:"token_key"`
	DistributionCert string                 `json:"distribution_cert" yaml:"distribution_cert"`
	DistributionKey  string                 `json:"distribution_key" yaml:"distribution_key"`
	HTTPSecret       string                 `json:"http_secret" yaml:"http_secret"`
	Upstream         UpstreamRegistryConfig `json:"upstream" yaml:"upstream"`
}

type Inputs

type Inputs = DeploymentStatus

func InputsFromSnapshot

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

type Params

type Params struct {
	CA         pki.CertKey
	Token      pki.CertKey
	HTTPSecret string
	Upstream   UpstreamParams
}

type ProcessResult

type ProcessResult struct {
	Ready   bool
	Message string
}

type State

type State struct {
	Config *StateConfig `json:"config,omitempty"`
}

func (*State) Process

func (state *State) Process(log go_hook.Logger, params Params, inputs Inputs) (ProcessResult, error)

func (*State) Stop

func (state *State) Stop(inputs Inputs) StopResult

type StateConfig

type StateConfig struct {
	Version string               `json:"version,omitempty"`
	Config  InclusterProxyConfig `json:"config,omitempty"`
}

type StopResult

type StopResult struct {
	Ready   bool
	Message string
}

type UpstreamParams

type UpstreamParams struct {
	Scheme     string
	ImagesRepo string
	UserName   string
	Password   string
	CA         *x509.Certificate
}

type UpstreamRegistryConfig

type UpstreamRegistryConfig struct {
	Scheme string     `json:"scheme,omitempty" yaml:"scheme,omitempty"`
	Host   string     `json:"host,omitempty" yaml:"host,omitempty"`
	Path   string     `json:"path,omitempty" yaml:"path,omitempty"`
	User   users.User `json:"user,omitempty" yaml:"user,omitempty"`
	CACert string     `json:"ca,omitempty" yaml:"ca,omitempty"`
}

Jump to

Keyboard shortcuts

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