metadata

package
v0.0.0-...-f942f97 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package metadata contains components for accessing Kyma storage (Applications, Minio)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationGetter

type ApplicationGetter interface {
	Get(ctx context.Context, name string, options v1.GetOptions) (*alpha1.Application, error)
}

type ServiceDefinitionService

type ServiceDefinitionService interface {
	// Create adds new ServiceDefinition.
	Create(application string, serviceDefinition *model.ServiceDefinition) (id string, err apperrors.AppError)

	// GetByID returns ServiceDefinition with provided ID.
	GetByID(application, id string) (serviceDefinition model.ServiceDefinition, err apperrors.AppError)

	// GetAll returns all ServiceDefinitions.
	GetAll(application string) (serviceDefinitions []model.ServiceDefinition, err apperrors.AppError)

	// Update updates a service definition with provided ID.
	Update(application string, serviceDef *model.ServiceDefinition) (model.ServiceDefinition, apperrors.AppError)

	// Delete deletes a ServiceDefinition.
	Delete(application, id string) apperrors.AppError

	// GetAPI gets API of a service with given ID
	GetAPI(application, serviceId string) (*model.API, apperrors.AppError)
}

ServiceDefinitionService is a service that manages ServiceDefinition objects.

func NewServiceDefinitionService

func NewServiceDefinitionService(uuidGenerator uuid.Generator, serviceAPIService serviceapi.Service, applicationRepository applications.ServiceRepository, specService specification.Service, applicationManager ApplicationGetter) ServiceDefinitionService

NewServiceDefinitionService creates new ServiceDefinitionService with provided dependencies.

Directories

Path Synopsis
Package applications contains components for accessing/modifying Application CRD
Package applications contains components for accessing/modifying Application CRD
Package secrets contains components for accessing/modifying client secrets
Package secrets contains components for accessing/modifying client secrets
strategy/mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

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