registry

package
v0.0.1-mvp Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

package registry implements the globalregistry.Registry interface based on the registryman.kubermatic.com/v1alpha1 API objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiObjectProvider

type ApiObjectProvider interface {
	GetProjects() []*api.Project
	GetRegistries() []*api.Registry
	GetScanners() []*api.Scanner
}

ApiObjectProvider interface describes the methods that are needed to get the different API resources.

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry type describes the API representation of a registry (i.e. the expected state) but it also implements the globalregistry.Registry interface.

func New

func New(reg *api.Registry, store ApiObjectProvider) *Registry

New function creates a new Registry value from the API representation of the registry.

func (*Registry) GetAPIEndpoint

func (reg *Registry) GetAPIEndpoint() string

GetAPIEndpoint method implements the globalregistry.RegistryConfig interface.

func (*Registry) GetName

func (reg *Registry) GetName() string

GetName method implements the globalregistry.RegistryConfig interface.

func (*Registry) GetPassword

func (reg *Registry) GetPassword() string

GetPassword method implements the globalregistry.RegistryConfig interface.

func (*Registry) GetProvider

func (reg *Registry) GetProvider() string

GetProvider method implements the globalregistry.RegistryConfig interface.

func (*Registry) GetUsername

func (reg *Registry) GetUsername() string

GetUsername method implements the globalregistry.RegistryConfig interface.

func (*Registry) ProjectAPI

func (reg *Registry) ProjectAPI() globalregistry.ProjectAPI

ProjectAPI method implements the globalregistry.Registry interface.

func (*Registry) ReplicationAPI

func (reg *Registry) ReplicationAPI() globalregistry.ReplicationAPI

ReplicationAPI method implements the globalregistry.Registry interface.

func (*Registry) ToReal

func (reg *Registry) ToReal(logger logr.Logger) (globalregistry.Registry, error)

ToReal method turns the (i.e. expected) Registry value into a provider-specific (i.e. actual) registry value.

Jump to

Keyboard shortcuts

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