applications

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 application contains components for accessing/modifying Application CRD

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Type                 string
	SecretName           string
	Url                  string
	CSRFTokenEndpointURL string
}

type Manager

type Manager interface {
	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 displayName in Application CRD
	DisplayName string
	// Mapped to longDescription in Application CRD
	LongDescription 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

type ServiceAPI

type ServiceAPI struct {
	GatewayURL                  string
	AccessLabel                 string
	TargetUrl                   string
	Credentials                 *Credentials
	RequestParametersSecretName string
}

ServiceAPI stores information needed to call an API

type ServiceRepository

type ServiceRepository interface {
	Get(id string) (Service, apperrors.AppError)
}

ServiceRepository contains operations for managing services stored in Application CRD

func NewServiceRepository

func NewServiceRepository(name string, appManager 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