bosh

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(e exec.Executor, ctx context.Context, data interface{}, args ...string) (exec.Result, error)

Types

type AuthenticationOptions

type AuthenticationOptions struct {
	URL string
}

type CertAppender

type CertAppender interface {
	AppendCertsFromPEM(pemCerts []byte) (ok bool)
}

type Client

type Client interface {
	VerifyAuth() error
	FindDeployment(name string) (director.DeploymentResp, bool, error)
	FindVM(deploymentName, processName string) (director.VMInfo, bool, error)
}

type ClientFactory

type ClientFactory interface {
	New(url string,
		allProxy string,
		trustedCertPEM []byte,
		certAppender CertAppender,
		boshAuth config.Authentication) (Client, error)
}

type ClientFactoryFunc

type ClientFactoryFunc func(url string, allProxy string, trustedCertPEM []byte, certAppender CertAppender, boshAuth config.Authentication) (Client, error)

func NewClientFactory

func NewClientFactory(directorFactory DirectorFactory, uaaFactory UAAFactory) ClientFactoryFunc

func (ClientFactoryFunc) New

func (f ClientFactoryFunc) New(
	url string,
	allProxy string,
	trustedCertPEM []byte,
	certAppender CertAppender,
	boshAuth config.Authentication,
) (Client, error)

type ClientImpl

type ClientImpl struct {
	PollingInterval time.Duration
	BoshInfo        Info
	// contains filtered or unexported fields
}

func (*ClientImpl) Director

func (c *ClientImpl) Director() (cli.Director, error)

func (*ClientImpl) FindDeployment

func (c *ClientImpl) FindDeployment(pattern string) (director.DeploymentResp, bool, error)

func (*ClientImpl) FindVM

func (c *ClientImpl) FindVM(deploymentName, processName string) (director.VMInfo, bool, error)

func (*ClientImpl) GetInfo

func (c *ClientImpl) GetInfo() (Info, error)

func (*ClientImpl) VerifyAuth

func (c *ClientImpl) VerifyAuth() error

type DirectorFactory

type DirectorFactory interface {
	New(allProxy string, config director.FactoryConfig, taskReporter director.TaskReporter, fileReporter director.FileReporter) (cli.Director, error)
}

type Info

type Info struct {
	Version            string
	UserAuthentication UserAuthentication `json:"user_authentication"`
}

type UAA

type UAA interface {
	uaa.UAA
}

type UAAFactory

type UAAFactory interface {
	New(config uaa.Config) (uaa.UAA, error)
}

type UserAuthentication

type UserAuthentication struct {
	Options AuthenticationOptions
}

Directories

Path Synopsis
cli
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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