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

Method CreateEAB

api/api.go:190–205  ·  view source on GitHub ↗
(ctx context.Context, chainSlug, orgSlug, realmSlug, serviceSlug, subCASlug string)

Source from the content-addressed store, hash-verified

188}
189
190func (s *Session) CreateEAB(ctx context.Context, chainSlug, orgSlug, realmSlug, serviceSlug, subCASlug string) (*Eab, error) {
191 var eabInput CreateEabTokenJSONRequestBody
192 eabInput.Relationships.Chain.Slug = chainSlug
193 eabInput.Relationships.Organization.Slug = orgSlug
194 eabInput.Relationships.Realm.Slug = realmSlug
195 eabInput.Relationships.Service = &RelationshipsServiceSlug{
196 Slug: serviceSlug,
197 }
198 eabInput.Relationships.SubCa.Slug = subCASlug
199
200 var eabOutput Eab
201 if err := s.post(ctx, "/acme/eab-tokens", eabInput, &eabOutput); err != nil {
202 return nil, err
203 }
204 return &eabOutput, nil
205}
206
207func (s *Session) CreateOrg(ctx context.Context, orgName string) (*Organization, error) {
208 orgInput := CreateOrgJSONRequestBody{

Callers 3

performMethod · 0.80
PerformMethod · 0.80
TestVerifyFunction · 0.80

Calls 1

postMethod · 0.95

Tested by 1

TestVerifyFunction · 0.64