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

Function GetAllRunbooks

pkg/cmd/runbook/shared/shared.go:65–71  ·  view source on GitHub ↗
(client newclient.Client, projectID string)

Source from the content-addressed store, hash-verified

63}
64
65func GetAllRunbooks(client newclient.Client, projectID string) ([]*runbooks.Runbook, error) {
66 res, err := runbooks.List(client, client.GetSpaceID(), projectID, "", math.MaxInt32)
67 if err != nil {
68 return nil, err
69 }
70 return res.Items, nil
71}
72
73func GetRunbook(client newclient.Client, projectID string, runbookIdentifier string) (*runbooks.Runbook, error) {
74 runbook, err := runbooks.GetByID(client, client.GetSpaceID(), runbookIdentifier)

Callers 3

selectRunbookTagsFunction · 0.92
runRunbooksByTagFunction · 0.92
NewGetRunbooksOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected