applications

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package applications contains components for accessing/modifying Application CRD

Index

Constants

View Source
const (
	CredentialsOAuthType          = "OAuth"
	CredentialsBasicType          = "Basic"
	CredentialsCertificateGenType = "CertificateGen"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CSRFInfo

type CSRFInfo struct {
	TokenEndpointURL string
}

type Credentials

type Credentials struct {
	Type              string
	SecretName        string
	AuthenticationUrl string
	CSRFInfo          *CSRFInfo
	Headers           *map[string][]string
	QueryParameters   *map[string][]string
}

type Manager

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

Manager contains operations for managing Application CRD

type Service

type Service struct {
	// Mapped to id in Application CRD
	ID string
	// Mapped to identifier in Application CRD
	Identifier string
	// Mapped to displayName in Application CRD
	DisplayName string
	// Mapped to name in Application CRD
	Name string
	// Mapped to shortDescription in Application CRD
	ShortDescription string
	// Mapped to longDescription in Application CRD
	LongDescription string
	// Mapped to labels in Application CRD
	Labels map[string]string
	// Mapped to providerDisplayName in Application CRD
	ProviderDisplayName string
	// Mapped to tags in Application 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 Application RE

type ServiceAPI

type ServiceAPI struct {
	GatewayURL                  string
	AccessLabel                 string
	TargetUrl                   string
	SpecificationUrl            string
	ApiType                     string
	Credentials                 Credentials
	RequestParametersSecretName string
}

ServiceAPI stores information needed to call an API

type ServiceRepository

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

ServiceRepository contains operations for managing services stored in Application CRD

func NewServiceRepository

func NewServiceRepository(reManager Manager) ServiceRepository

NewServiceRepository creates a new ApplicationServiceRepository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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