cli

package
v0.0.0-...-4d94a0f Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 13 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDomains = errors.New("no shared domains returned by CC")
)

Functions

func GetDefaultSharedDomain

func GetDefaultSharedDomain(logger lager.Logger, cfClient CFClient) (string, error)

Types

type CFClient

type CFClient interface {
	Cf(logger lager.Logger, ctx context.Context, timeout time.Duration, args ...string) ([]byte, error)
	Cleanup(ctx context.Context)
	Pool() chan string
}

func NewCfClient

func NewCfClient(ctx context.Context, poolSize int) CFClient

type CFPooledClient

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

func (*CFPooledClient) Cf

func (cfcli *CFPooledClient) Cf(logger lager.Logger, ctx context.Context, timeout time.Duration, args ...string) ([]byte, error)

func (*CFPooledClient) Cleanup

func (cfcli *CFPooledClient) Cleanup(ctx context.Context)

func (*CFPooledClient) Pool

func (cfcli *CFPooledClient) Pool() chan string

type SharedDomainResponse

type SharedDomainResponse struct {
	Resources []struct {
		Entity struct {
			Name string `json:"name"`
		} `json:"entity"`
	} `json:"resources"`
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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