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

Function ResolveEntities

pkg/cmd/tenant/shared/shared.go:36–43  ·  view source on GitHub ↗
(keys []string, lookup map[string]string)

Source from the content-addressed store, hash-verified

34type GetAllLibraryVariableSetsCallback func() ([]*variables.LibraryVariableSet, error)
35
36func ResolveEntities(keys []string, lookup map[string]string) ([]output.IdAndName, error) {
37 var entities []output.IdAndName
38 for _, k := range keys {
39 entities = append(entities, output.IdAndName{Id: k, Name: lookup[k]})
40 }
41
42 return entities, nil
43}
44
45func GetEnvironmentMapForTenants(client *client.Client, tenants []*tenants.Tenant) (map[string]string, error) {
46 var environmentIds []string

Callers 2

viewRunFunction · 0.92
listRunFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected