MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / GetAllTenants

Function GetAllTenants

pkg/cmd/tenant/shared/shared.go:121–128  ·  view source on GitHub ↗
(client *client.Client)

Source from the content-addressed store, hash-verified

119}
120
121func GetAllTenants(client *client.Client) ([]*tenants.Tenant, error) {
122 res, err := client.Tenants.GetAll()
123 if err != nil {
124 return nil, err
125 }
126
127 return res, nil
128}
129
130func GetTenant(client *client.Client, identifier string) (*tenants.Tenant, error) {
131 res, err := client.Tenants.GetByIdentifier(identifier)

Callers 4

NewUpdateOptionsFunction · 0.92
NewCloneOptionsFunction · 0.92
NewConnectOptionsFunction · 0.92
NewDisconnectOptionsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected