service

package
v0.0.0-...-11d49e1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindOptions

type BindOptions struct {
	ID              string
	InstanceID      string
	Namespace       string
	GlobalNamespace string
}

type MinioInstance

type MinioInstance struct{}

func NewMinioInstance

func NewMinioInstance() *MinioInstance

func (*MinioInstance) Definition

func (s *MinioInstance) Definition() osb.Service

Get the service definition of the minio instance

func (*MinioInstance) GetBindSpec

func (s *MinioInstance) GetBindSpec(options BindOptions) *kube.Spec

func (*MinioInstance) GetDebindSpec

func (s *MinioInstance) GetDebindSpec(options BindOptions) *kube.Spec

func (*MinioInstance) GetDeprovisionSpec

func (s *MinioInstance) GetDeprovisionSpec(options ServiceOptions) *kube.Spec

func (*MinioInstance) GetHost

func (s *MinioInstance) GetHost(instanceID string, namespace string) string

func (*MinioInstance) GetProvisionSpec

func (s *MinioInstance) GetProvisionSpec(options ServiceOptions) *kube.Spec

type MysqlInstance

type MysqlInstance struct {
}

func NewMysqlInstance

func NewMysqlInstance() *MysqlInstance

func (*MysqlInstance) Definition

func (s *MysqlInstance) Definition() osb.Service

Get the service definition of the mysql instance

func (*MysqlInstance) GetBindSpec

func (s *MysqlInstance) GetBindSpec(options BindOptions) *kube.Spec

func (*MysqlInstance) GetDebindSpec

func (s *MysqlInstance) GetDebindSpec(options BindOptions) *kube.Spec

func (*MysqlInstance) GetDeprovisionSpec

func (s *MysqlInstance) GetDeprovisionSpec(options ServiceOptions) *kube.Spec

func (*MysqlInstance) GetHost

func (s *MysqlInstance) GetHost(instanceID string, namespace string) string

func (*MysqlInstance) GetProvisionSpec

func (s *MysqlInstance) GetProvisionSpec(options ServiceOptions) *kube.Spec

type Service

type Service interface {
	Definition() osb.Service
	GetHost(instanceId string, namespace string) string
	GetProvisionSpec(options ServiceOptions) *kube.Spec
	GetDeprovisionSpec(options ServiceOptions) *kube.Spec
	GetBindSpec(options BindOptions) *kube.Spec
	GetDebindSpec(options BindOptions) *kube.Spec
}

type ServiceOptions

type ServiceOptions struct {
	ID              string
	PlanID          string
	Namespace       string
	GlobalNamespace string
}

type SharedMysql

type SharedMysql struct {
	// contains filtered or unexported fields
}

func NewSharedMysql

func NewSharedMysql(config SharedMysqlConfig) *SharedMysql

func (*SharedMysql) Definition

func (s *SharedMysql) Definition() osb.Service

func (*SharedMysql) GetBindSpec

func (s *SharedMysql) GetBindSpec(options BindOptions) *kube.Spec

func (*SharedMysql) GetDebindSpec

func (s *SharedMysql) GetDebindSpec(options BindOptions) *kube.Spec

func (*SharedMysql) GetDeprovisionSpec

func (s *SharedMysql) GetDeprovisionSpec(options ServiceOptions) *kube.Spec

func (*SharedMysql) GetHost

func (s *SharedMysql) GetHost(instanceID string, namespace string) string

func (*SharedMysql) GetProvisionSpec

func (s *SharedMysql) GetProvisionSpec(options ServiceOptions) *kube.Spec

type SharedMysqlConfig

type SharedMysqlConfig struct {
	Name     string `yaml:"name"`
	ID       string `yaml:"id"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
}

Jump to

Keyboard shortcuts

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