(client newclient.Client, projectID string)
| 63 | } |
| 64 | |
| 65 | func 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 | |
| 73 | func GetRunbook(client newclient.Client, projectID string, runbookIdentifier string) (*runbooks.Runbook, error) { |
| 74 | runbook, err := runbooks.GetByID(client, client.GetSpaceID(), runbookIdentifier) |
no outgoing calls
no test coverage detected