registry

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExposureOpts

func GetExposureOpts(expose map[string]string) K3D.ExposureOpts

GetExposureOpts fetches expose data and adds it to K3D.Config.

func SetProxyConfig

func SetProxyConfig(proxyCfg map[string]string, registry *K3D.Registry)

SetProxyConfig fetches passed proxy config and adds it to K3D.Config.

Types

type Config

type Config struct {
	Name             []string          `json:"name,omitempty" mapstructure:"name"`
	Image            string            `json:"image,omitempty"  mapstructure:"image"`
	Cluster          string            `json:"cluster,omitempty" mapstructure:"cluster"`
	Protocol         string            `json:"protocol,omitempty" mapstructure:"protocol"`
	Host             string            `json:"host,omitempty" mapstructure:"host"`
	Port             string            `json:"port,omitempty" mapstructure:"port"`
	Expose           map[string]string `json:"expose,omitempty" mapstructure:"expose"`
	UseProxy         bool              `json:"use_proxy,omitempty" mapstructure:"use_proxy"`
	Proxy            map[string]string `json:"proxy,omitempty" mapstructure:"proxy"`
	All              bool              `json:"all,omitempty" mapstructure:"all"`
	ConnectToCluster bool              `json:"connect,omitempty" mapstructure:"connect"`
}

Config helps to store filtered registry data the present in selected runtime.

func (*Config) Connect

func (registry *Config) Connect(ctx context.Context, runtime runtimes.Runtime) error

func (*Config) Create

func (registry *Config) Create(ctx context.Context, runtime runtimes.Runtime) error

func (*Config) Disconnect

func (registry *Config) Disconnect(ctx context.Context, runtime runtimes.Runtime) error

func (*Config) Get

func (registry *Config) Get(ctx context.Context, runtime runtimes.Runtime) ([]*k3dNode.Config, error)

Get fetches the information of the list of selected registries.

func (*Config) GetRegistryStatus

func (registry *Config) GetRegistryStatus(registryName, state string) map[string]string

Jump to

Keyboard shortcuts

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