common

package
v0.0.0-...-d6600ca Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

View Source
const (
	DEBUG = "debug"
	INFO  = "info"
	ERROR = "error"
	FATAL = "fatal"
	WARN  = "warn"
)

Variables

View Source
var NO_MESSAGE = ""
View Source
var PROCESSING_STATUS_FAILED = "failed"
View Source
var PROCESSING_STATUS_NONE = "none"
View Source
var PROCESSING_STATUS_SUCCESSFUL = "successful"
View Source
var PROCESSING_STATUS_UNKNOWN = "unknown"
View Source
var PROCESSING_TYPE_DEFAULT = "default"
View Source
var PROCESSING_TYPE_EXTENSION = "extension"
View Source
var PROCESSING_TYPE_NONE = "none"

Functions

func NewLogger

func NewLogger(level string, component string) *logrus.Logger

Types

type CSMConnectionInterface

type CSMConnectionInterface interface {
	CheckExtensions()
	GetConnection(workspaceID string, connectionID string) *models.ServiceManagerConnectionResponse
	CreateConnection(workspaceID string, createConnection *models.ServiceManagerConnectionCreateRequest, Details map[string]interface{}) *models.ServiceManagerConnectionResponse
	DeleteConnection(workspaceID string, connectionID string) *models.ServiceManagerConnectionResponse
}

type CSMStatusInterface

type CSMStatusInterface interface {
	GetStatus() *models.StatusResponse
}

type CSMWorkspaceInterface

type CSMWorkspaceInterface interface {
	CheckExtensions()
	GetWorkspace(workspaceID string) *models.ServiceManagerWorkspaceResponse
	CreateWorkspace(workspaceCreate *models.ServiceManagerWorkspaceCreateRequest) *models.ServiceManagerWorkspaceResponse
	DeleteWorkspace(workspaceID string) *models.ServiceManagerWorkspaceResponse
}

type ServiceManagerConfiguration

type ServiceManagerConfiguration struct {
	PARAMETERS           *string
	MANAGER_HOME         *string
	LOG_LEVEL            *string
	DEV_MODE             *string
	API_KEY              *string
	EXT_TIMEOUT          *string
	EXT_TIMEOUT_ERROR    *string
	HEALTHCHECK_HOST     *string
	HEALTHCHECK_PORT     *string
	TLS_CERT_FILE        *string
	TLS_PRIVATE_KEY_FILE *string
	PORT                 *string `env:"PORT"`
	KUBE_INSTANCE_ID     *string `env:"KUBE_INSTANCE_ID"`
}

func NewServiceManagerConfiguration

func NewServiceManagerConfiguration() *ServiceManagerConfiguration

NewServiceManagerConfiguration : Creates object of ServiceManagerConfiguration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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