organizationreader

package
v1.0.86 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 11

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 CFOrgClient added in v1.0.68

type CFOrgClient interface {
	ListAll(ctx context.Context, opts *v3cfclient.OrganizationListOptions) ([]*resource.Organization, error)
	GetDefaultIsolationSegment(ctx context.Context, guid string) (string, error)
}

type DefaultReader

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

DefaultManager -

func (*DefaultReader) AddOrgToList

func (m *DefaultReader) AddOrgToList(org *resource.Organization)

func (*DefaultReader) ClearOrgList

func (m *DefaultReader) ClearOrgList()

func (*DefaultReader) FindOrg

func (m *DefaultReader) FindOrg(orgName string) (*resource.Organization, error)

FindOrg -

func (*DefaultReader) FindOrgByGUID

func (m *DefaultReader) FindOrgByGUID(orgGUID string) (*resource.Organization, error)

FindOrgByGUID -

func (*DefaultReader) GetDefaultIsolationSegment added in v1.0.68

func (m *DefaultReader) GetDefaultIsolationSegment(org *resource.Organization) (string, error)

func (*DefaultReader) GetOrgGUID

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

func (*DefaultReader) ListOrgs

func (m *DefaultReader) ListOrgs() ([]*resource.Organization, error)

ListOrgs : Returns all orgs in the given foundation

type Reader

type Reader interface {
	ListOrgs() ([]*resource.Organization, error)
	FindOrg(orgName string) (*resource.Organization, error)
	FindOrgByGUID(orgGUID string) (*resource.Organization, error)
	GetOrgGUID(orgName string) (string, error)
	ClearOrgList()
	AddOrgToList(org *resource.Organization)
	GetDefaultIsolationSegment(org *resource.Organization) (string, error)
}

Reader -

func NewReader

func NewReader(client CFClient, orgClient CFOrgClient, 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