MCPcopy Create free account
hub / github.com/anchordotdev/cli / GetServiceAttachments

Method GetServiceAttachments

api/api.go:130–136  ·  view source on GitHub ↗
(ctx context.Context, orgAPID string, serviceAPID string)

Source from the content-addressed store, hash-verified

128}
129
130func (s *Session) GetServiceAttachments(ctx context.Context, orgAPID string, serviceAPID string) ([]Attachment, error) {
131 var attachments Attachments
132 if err := s.get(ctx, getServiceAttachmentsPath(orgAPID, serviceAPID), &attachments); err != nil {
133 return nil, err
134 }
135 return attachments.Items, nil
136}
137
138func (s *Session) CreatePATToken(ctx context.Context, deviceCode string) (string, error) {
139 reqBody := CreateCliTokenJSONRequestBody{

Callers 4

subcaAPIDMethod · 0.80
PerformMethod · 0.80
RunTUIMethod · 0.80
TestVerifyFunction · 0.80

Calls 2

getMethod · 0.95

Tested by 1

TestVerifyFunction · 0.64