registry

package
v0.0.0-...-45ecc74 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileRegistryData

type FileRegistryData struct {
	Clusters []*api.Cluster `json:"clusters" yaml:"clusters"`
}

FileRegistryData wrapper around cluster items read from file

type Filter

type Filter struct {
	LifecycleStatus *string
}

Filter defines a filter which can be used when listing clusters.

type Options

type Options struct {
	Debug bool
}

Options are options which can be used to configure the httpRegistry when it is initialized.

type Registry

type Registry interface {
	ListClusters(filter Filter) ([]*api.Cluster, error)
	UpdateCluster(cluster *api.Cluster) error
}

Registry defines an interface for listing and updating clusters from a cluster registry.

func NewFileRegistry

func NewFileRegistry(filePath string) Registry

NewFileRegistry returns file registry client

func NewHTTPRegistry

func NewHTTPRegistry(server *url.URL, tokenSource oauth2.TokenSource, options *Options) Registry

NewHTTPRegistry initializes a new http based registry source.

func NewRegistry

func NewRegistry(uri string, tokenSource oauth2.TokenSource, options *Options) Registry

NewRegistry initializes a new registry source based on the uri.

func NewStaticRegistry

func NewStaticRegistry() Registry

NewStaticRegistry initializes a new staticRegistry.

Jump to

Keyboard shortcuts

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