internal

package
v0.0.0-...-1ac4f16 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIEntry

type APIEntry struct {
	Entry
	GatewayURL  string
	AccessLabel string
}

APIEntry represents API of the application.

type Application

type Application struct {
	Name        ApplicationName
	Description string
	Services    []Service
	AccessLabel string
}

Application represents Application as defined by OSB API.

type ApplicationName

type ApplicationName string

ApplicationName is a Application name

type ApplicationServiceID

type ApplicationServiceID string

ApplicationServiceID is an ID of Service defined in Application

type Entry

type Entry struct {
	Type string
}

Entry is a generic type for all type of entries.

type Instance

type Instance struct {
	ID            InstanceID
	ServiceID     ServiceID
	ServicePlanID ServicePlanID
	Namespace     Namespace
	State         InstanceState
	ParamsHash    string
}

Instance contains info about Service exposed via Service Catalog.

type InstanceBindData

type InstanceBindData struct {
	InstanceID  InstanceID
	Credentials InstanceCredentials
}

InstanceBindData contains data about service instance and it's credentials.

type InstanceCredentials

type InstanceCredentials map[string]string

InstanceCredentials are created when we bind a service instance.

type InstanceID

type InstanceID string

InstanceID is a service instance identifier.

func (InstanceID) IsZero

func (id InstanceID) IsZero() bool

IsZero checks if InstanceID equals zero.

type InstanceOperation

type InstanceOperation struct {
	InstanceID       InstanceID
	OperationID      OperationID
	Type             OperationType
	State            OperationState
	StateDescription *string

	// ParamsHash is an immutable hash for operation parameters
	// used to match requests.
	ParamsHash string

	// CreatedAt points to creation time of the operation.
	// Field should be treated as immutable and is responsibility of storage implementation.
	// It should be set by storage Insert method.
	CreatedAt time.Time
}

InstanceOperation represents single operation.

type InstanceState

type InstanceState string

InstanceState defines the possible states of the Instance in the storage.

const (
	// InstanceStatePending is when provision is in progress
	InstanceStatePending InstanceState = "pending"
	// InstanceStateFailed is when provision was failed
	InstanceStateFailed InstanceState = "failed"
	// InstanceStateSucceeded is when provision was succeeded
	InstanceStateSucceeded InstanceState = "succeeded"
)

type Namespace

type Namespace string

Namespace is the name of namespace in k8s

type OperationID

type OperationID string

OperationID is used as binding operation identifier.

func (OperationID) IsZero

func (id OperationID) IsZero() bool

IsZero checks if OperationID equals zero

type OperationState

type OperationState string

OperationState defines the possible states of an asynchronous request to a broker.

const (
	// OperationStateInProgress means that operation is in progress
	OperationStateInProgress OperationState = "in progress"
	// OperationStateSucceeded means that request succeeded
	OperationStateSucceeded OperationState = "succeeded"
	// OperationStateFailed means that request failed
	OperationStateFailed OperationState = "failed"
)

func (OperationState) String

func (os OperationState) String() string

String returns state of the operation.

type OperationType

type OperationType string

OperationType defines the possible types of an asynchronous operation to a broker.

const (
	// OperationTypeCreate means creating OperationType
	OperationTypeCreate OperationType = "create"
	// OperationTypeRemove means removing OperationType
	OperationTypeRemove OperationType = "remove"
	// OperationTypeUndefined means undefined OperationType
	OperationTypeUndefined OperationType = ""
)

type Service

type Service struct {
	ID                  ApplicationServiceID
	Name                string
	DisplayName         string
	Description         string
	LongDescription     string
	ProviderDisplayName string

	Tags   []string
	Labels map[string]string

	//TODO(entry-simplification): this is an accepted simplification until
	// explicit support of many APIEntry and EventEntry
	APIEntry      *APIEntry
	EventProvider bool
}

Service represents service defined in the application which is mapped to service class in the service catalog.

type ServiceID

type ServiceID string

ServiceID is an ID of the Service exposed via Service Catalog.

type ServicePlanID

type ServicePlanID string

ServicePlanID is an ID of the Plan of Service exposed via Service Catalog.

Directories

Path Synopsis
automock
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
automock
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
automock
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
populator/automock
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
testing
Package testing provides test functions for storage.
Package testing provides test functions for storage.

Jump to

Keyboard shortcuts

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