Documentation ¶
Overview ¶
package registry implements the globalregistry.Registry interface based on the registryman.kubermatic.com/v1alpha1 API objects.
Index ¶
- type ApiObjectProvider
- type Registry
- func (reg *Registry) GetAPIEndpoint() string
- func (reg *Registry) GetName() string
- func (reg *Registry) GetPassword() string
- func (reg *Registry) GetProvider() string
- func (reg *Registry) GetUsername() string
- func (reg *Registry) ProjectAPI() globalregistry.ProjectAPI
- func (reg *Registry) ReplicationAPI() globalregistry.ReplicationAPI
- func (reg *Registry) ToReal(logger logr.Logger) (globalregistry.Registry, error)
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 ¶
GetAPIEndpoint method implements the globalregistry.RegistryConfig interface.
func (*Registry) GetPassword ¶
GetPassword method implements the globalregistry.RegistryConfig interface.
func (*Registry) GetProvider ¶
GetProvider method implements the globalregistry.RegistryConfig interface.
func (*Registry) GetUsername ¶
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.