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

Function GetTenant

pkg/cmd/tenant/shared/shared.go:130–137  ·  view source on GitHub ↗
(client *client.Client, identifier string)

Source from the content-addressed store, hash-verified

128}
129
130func GetTenant(client *client.Client, identifier string) (*tenants.Tenant, error) {
131 res, err := client.Tenants.GetByIdentifier(identifier)
132 if err != nil {
133 return nil, err
134 }
135
136 return res, nil
137}
138
139func GetAllProjects(client *client.Client) ([]*projects.Project, error) {
140 res, err := client.Projects.GetAll()

Callers 3

NewUpdateOptionsFunction · 0.92
NewCloneOptionsFunction · 0.92
NewDisconnectOptionsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected