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

Method CreateOrg

api/api.go:207–217  ·  view source on GitHub ↗
(ctx context.Context, orgName string)

Source from the content-addressed store, hash-verified

205}
206
207func (s *Session) CreateOrg(ctx context.Context, orgName string) (*Organization, error) {
208 orgInput := CreateOrgJSONRequestBody{
209 Name: orgName,
210 }
211
212 var orgOutput Organization
213 if err := s.post(ctx, "/orgs", orgInput, &orgOutput); err != nil {
214 return nil, err
215 }
216 return &orgOutput, nil
217}
218
219func (s *Session) CreateService(ctx context.Context, orgSlug, serviceName, serverType string, localhostPort *int) (*Service, error) {
220 serviceInput := CreateServiceJSONRequestBody{

Callers 1

PerformMethod · 0.80

Calls 1

postMethod · 0.95

Tested by

no test coverage detected