organizationreader

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFClient

type CFClient interface {
	ListOrgs() ([]cfclient.Org, error)
	DeleteOrg(guid string, recursive, async bool) error
	GetOrgByGuid(guid string) (cfclient.Org, error)
}

type DefaultReader

type DefaultReader struct {
	Cfg    config.Reader
	Client CFClient
	Peek   bool
	// contains filtered or unexported fields
}

DefaultManager -

func (*DefaultReader) AddOrgToList

func (m *DefaultReader) AddOrgToList(org cfclient.Org)

func (*DefaultReader) ClearOrgList

func (m *DefaultReader) ClearOrgList()

func (*DefaultReader) FindOrg

func (m *DefaultReader) FindOrg(orgName string) (cfclient.Org, error)

FindOrg -

func (*DefaultReader) FindOrgByGUID

func (m *DefaultReader) FindOrgByGUID(orgGUID string) (cfclient.Org, error)

FindOrgByGUID -

func (*DefaultReader) GetOrgByGUID

func (m *DefaultReader) GetOrgByGUID(orgGUID string) (cfclient.Org, error)

func (*DefaultReader) GetOrgGUID

func (m *DefaultReader) GetOrgGUID(orgName string) (string, error)

func (*DefaultReader) ListOrgs

func (m *DefaultReader) ListOrgs() ([]cfclient.Org, error)

ListOrgs : Returns all orgs in the given foundation

type Reader

type Reader interface {
	ListOrgs() ([]cfclient.Org, error)
	FindOrg(orgName string) (cfclient.Org, error)
	FindOrgByGUID(orgGUID string) (cfclient.Org, error)
	GetOrgGUID(orgName string) (string, error)
	GetOrgByGUID(orgGUID string) (cfclient.Org, error)
	ClearOrgList()
	AddOrgToList(org cfclient.Org)
}

Reader -

func NewReader

func NewReader(client CFClient, cfg config.Reader, peek bool) Reader

Directories

Path Synopsis
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