metadata

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 6 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 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) 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 istio contains components for managing Istio resources (Deniers, DenyRules, CheckNothings, ...)
Package istio contains components for managing Istio resources (Deniers, DenyRules, CheckNothings, ...)
mocks
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Package secrets contains components for accessing/modifying client secrets
Package secrets contains components for accessing/modifying client secrets
mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
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