remoteenv

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package remoteenv contains components for accessing/modifying Remote Environment CRD

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Update(*v1alpha1.RemoteEnvironment) (*v1alpha1.RemoteEnvironment, error)
	Get(name string, options v1.GetOptions) (*v1alpha1.RemoteEnvironment, error)
}

Manager contains operations for managing Remote Environment CRD

type Service

type Service struct {
	// Mapped to id in Remote Environment CRD
	ID string
	// Mapped to displayName in Remote Environment CRD
	DisplayName string
	// Mapped to longDescription in Remote Environment CRD
	LongDescription string
	// Mapped to providerDisplayName in Remote Environment CRD
	ProviderDisplayName string
	// Mapped to tags in Remote Environment CRD
	Tags []string
	// Mapped to type property under entries element (type: API)
	API *ServiceAPI
	// Mapped to type property under entries element (type: Events)
	Events bool
}

Service represents a service stored in Remote Environment RE

type ServiceAPI

type ServiceAPI struct {
	GatewayURL            string
	AccessLabel           string
	TargetUrl             string
	OauthUrl              string
	CredentialsSecretName string
}

ServiceAPI stores information needed to call an API

type ServiceRepository

type ServiceRepository interface {
	Create(remoteEnvironment string, service Service) apperrors.AppError
	Get(remoteEnvironment, id string) (Service, apperrors.AppError)
	GetAll(remoteEnvironment string) ([]Service, apperrors.AppError)
	Update(remoteEnvironment string, service Service) apperrors.AppError
	Delete(remoteEnvironment, id string) apperrors.AppError
}

ServiceRepository contains operations for managing services stored in Remote Environment CRD

func NewServiceRepository

func NewServiceRepository(reManager Manager) ServiceRepository

NewServiceRepository creates a new RemoteEnvironmentServiceRepository

Directories

Path Synopsis
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