models

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: CC0-1.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials interface {
	GetDBName() string
	GetHost() string
	GetUsername() string
	GetPassword() string
	GetPort() string
}

func CredentialsFromJSON

func CredentialsFromJSON(body string) (creds Credentials, err error)

type ServiceInstance

type ServiceInstance struct {
	GUID    string
	Name    string
	Service string
	Plan    string
}

func FetchServiceInstance

func FetchServiceInstance(cliConnection plugin.CliConnection, name string) (si ServiceInstance, err error)

func (*ServiceInstance) ContainsTerms

func (si *ServiceInstance) ContainsTerms(items ...string) bool

type ServiceKey

type ServiceKey struct {
	Instance ServiceInstance
	ID       string
}

func NewServiceKey

func NewServiceKey(instance ServiceInstance) ServiceKey

func (*ServiceKey) Create

func (sk *ServiceKey) Create(conn plugin.CliConnection) error

func (*ServiceKey) Delete

func (sk *ServiceKey) Delete(conn plugin.CliConnection) error

func (*ServiceKey) GetCreds

func (sk *ServiceKey) GetCreds(cliConnection plugin.CliConnection) (creds Credentials, err error)

Jump to

Keyboard shortcuts

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