{"modulePath":"github.com/anchordotdev/cli","version":"v0.1.12","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nPackage api provides primitives to interact with the openapi HTTP API.\n\nCode generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.\n\n## Constants\n\n```go\nconst (\n\tPat_basicScopes  = \"pat_basic.Scopes\"\n\tPat_bearerScopes = \"pat_bearer.Scopes\"\n)\n```\n\n```go\nconst NotFoundErr = StatusCodeError(http.StatusNotFound)\n```\n\n## Variables\n\n```go\nvar (\n\tErrSignedOut            = errors.New(\"sign in required\")\n\tErrTransient            = errors.New(\"transient error encountered, please retry\")\n\tErrGnomeKeyringRequired = fmt.Errorf(\"gnome-keyring required for secure credential storage: %w\", ErrSignedOut)\n)\n```\n\n## Functions\n\n```go\nfunc PointerTo[T any](v T) *T\n```\n\n```go\nfunc ProvisionCert(eab *Eab, domains []string, acmeURL string) (*tls.Certificate, error)\n```\n\n## Types\n\n```go\ntype AttachDomainJSONBody struct {\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tAcmeCa *RelationshipsAcmeCaApid `json:\"acme_ca,omitempty\"`\n\t\tChain  RelationshipsChainApid   `json:\"chain\"`\n\t\tRealm  RelationshipsRealmApid   `json:\"realm\"`\n\t} `json:\"relationships\"`\n}\n```\nAttachDomainJSONBody defines parameters for AttachDomain.\n\n```go\ntype AttachDomainJSONRequestBody AttachDomainJSONBody\n```\nAttachDomainJSONRequestBody defines body for AttachDomain for application/json ContentType.\n\n```go\ntype AttachOrgServiceJSONBody struct {\n\t// Domains A list of domains for this attachment.\n\tDomains []string `json:\"domains\"`\n\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tChain RelationshipsChainSlug `json:\"chain\"`\n\t\tRealm RelationshipsRealmSlug `json:\"realm\"`\n\t} `json:\"relationships\"`\n}\n```\nAttachOrgServiceJSONBody defines parameters for AttachOrgService.\n\n```go\ntype AttachOrgServiceJSONRequestBody AttachOrgServiceJSONBody\n```\nAttachOrgServiceJSONRequestBody defines body for AttachOrgService for application/json ContentType.\n\n```go\ntype Attachment struct {\n\t// Domains A list of domains for this attachment.\n\tDomains []string `json:\"domains\"`\n\n\t// Port TCP port number for the service in the realm.\n\tPort int32 `json:\"port\"`\n\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tChain        RelationshipsChainApid         `json:\"chain\"`\n\t\tOrganization RelationshipsOrganizationApid  `json:\"organization\"`\n\t\tRealm        RelationshipsRealmApid         `json:\"realm\"`\n\t\tService      RelationshipsServiceApid       `json:\"service\"`\n\t\tSubCa        RelationshipsSubCaApidNullable `json:\"sub_ca\"`\n\t} `json:\"relationships\"`\n}\n```\nAttachment defines model for attachment.\n\n```go\ntype Attachments struct {\n\tItems []Attachment `json:\"items\"`\n}\n```\nAttachments defines model for attachments.\n\n```go\ntype AuthCliCodesResponse struct {\n\t// DeviceCode Unique code associated with origin device for CLI auth flow.\n\tDeviceCode string `json:\"device_code\"`\n\n\t// ExpiresIn Number of seconds until device and user codes expire, defaults to 900s (15m).\n\tExpiresIn int32 `json:\"expires_in\"`\n\n\t// Interval Minimum number of seconds to wait before re-polling during CLI auth flow, defaults to 5s.\n\tInterval int32 `json:\"interval\"`\n\n\t// UserCode User verification code to be presented for the user to enter into a browser, formed by 8 characters with a hyphen in the middle.\n\tUserCode string `json:\"user_code\"`\n\n\t// VerificationUri The URL where the user will need to enter their code to complete the CLI auth flow.\n\tVerificationUri string `json:\"verification_uri\"`\n}\n```\nAuthCliCodesResponse defines model for auth\\_cli\\_codes\\_response.\n\n```go\ntype AuthCliPatTokensResponse struct {\n\t// PatToken Authenticated token for user API interactions.\n\tPatToken string `json:\"pat_token\"`\n}\n```\nAuthCliPatTokensResponse defines model for auth\\_cli\\_pat\\_tokens\\_response.\n\n```go\ntype Chain struct {\n\t// Name The name of the chain.\n\tName string `json:\"name\"`\n\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tOrg   RelationshipsOrganizationSlug `json:\"org\"`\n\t\tRealm RelationshipsRealmSlug        `json:\"realm\"`\n\t} `json:\"relationships\"`\n\n\t// Slug A value used as a parameter when referencing this chain.\n\tSlug string `json:\"slug\"`\n}\n```\nChain defines model for chain.\n\n```go\ntype Client struct {\n\t// Name A name for the client.\n\tName string `json:\"name\"`\n\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tOrganization RelationshipsOrganizationSlug `json:\"organization\"`\n\t\tService      RelationshipsServiceSlug      `json:\"service\"`\n\t} `json:\"relationships\"`\n\n\t// Slug A value used as a parameter when referencing this client.\n\tSlug string `json:\"slug\"`\n\n\t// Type A type for the client.\n\tType ClientType `json:\"type\"`\n}\n```\nClient defines model for client.\n\n```go\ntype ClientType string\n```\nClientType A type for the client.\n\n```go\nconst (\n\tClientTypeCustom     ClientType = \"custom\"\n\tClientTypeGo         ClientType = \"go\"\n\tClientTypeJavascript ClientType = \"javascript\"\n\tClientTypePython     ClientType = \"python\"\n\tClientTypeRuby       ClientType = \"ruby\"\n)\n```\nDefines values for ClientType.\n\n```go\ntype CreateCliTokenJSONBody struct {\n\t// DeviceCode Unique code associated with origin device for CLI auth flow.\n\tDeviceCode string `json:\"device_code\"`\n}\n```\nCreateCliTokenJSONBody defines parameters for CreateCliToken.\n\n```go\ntype CreateCliTokenJSONRequestBody CreateCliTokenJSONBody\n```\nCreateCliTokenJSONRequestBody defines body for CreateCliToken for application/json ContentType.\n\n```go\ntype CreateClientJSONBody struct {\n\tRelationships struct {\n\t\tOrganization RelationshipsOrganizationSlug `json:\"organization\"`\n\t\tService      RelationshipsServiceSlug      `json:\"service\"`\n\t} `json:\"relationships\"`\n\tServerType string  `json:\"server_type\"`\n\tType       *string `json:\"type,omitempty\"`\n}\n```\nCreateClientJSONBody defines parameters for CreateClient.\n\n```go\ntype CreateClientJSONRequestBody CreateClientJSONBody\n```\nCreateClientJSONRequestBody defines body for CreateClient for application/json ContentType.\n\n```go\ntype CreateDomainJSONBody struct {\n\t// Fqdn The fully qualified domain name for the new domain.\n\tFqdn string `json:\"fqdn\"`\n}\n```\nCreateDomainJSONBody defines parameters for CreateDomain.\n\n```go\ntype CreateDomainJSONRequestBody CreateDomainJSONBody\n```\nCreateDomainJSONRequestBody defines body for CreateDomain for application/json ContentType.\n\n```go\ntype CreateEabTokenJSONBody struct {\n\t// Identifiers An optional list of identifiers to limits what certificates this token may provision certificates for.\n\tIdentifiers *[]struct {\n\t\t// Type A type for the identifier, only `dns` is supported at this time.\n\t\tType CreateEabTokenJSONBodyIdentifiersType `json:\"type\"`\n\n\t\t// Value A value for the identifier.\n\t\tValue string `json:\"value\"`\n\t} `json:\"identifiers,omitempty\"`\n\tRelationships struct {\n\t\tChain        RelationshipsChainSlug        `json:\"chain\"`\n\t\tOrganization RelationshipsOrganizationSlug `json:\"organization\"`\n\t\tRealm        RelationshipsRealmSlug        `json:\"realm\"`\n\t\tService      *RelationshipsServiceSlug     `json:\"service,omitempty\"`\n\t\tSubCa        RelationshipsSubCaSlug        `json:\"sub_ca\"`\n\t} `json:\"relationships\"`\n}\n```\nCreateEabTokenJSONBody defines parameters for CreateEabToken.\n\n```go\ntype CreateEabTokenJSONBodyIdentifiersType string\n```\nCreateEabTokenJSONBodyIdentifiersType defines parameters for CreateEabToken.\n\n```go\nconst (\n\tCreateEabTokenJSONBodyIdentifiersTypeDns CreateEabTokenJSONBodyIdentifiersType = \"dns\"\n)\n```\nDefines values for CreateEabTokenJSONBodyIdentifiersType.\n\n```go\ntype CreateEabTokenJSONRequestBody CreateEabTokenJSONBody\n```\nCreateEabTokenJSONRequestBody defines body for CreateEabToken for application/json ContentType.\n\n```go\ntype CreateOrgJSONBody struct {\n\t// Name The name for the new organization.\n\tName string `json:\"name\"`\n}\n```\nCreateOrgJSONBody defines parameters for CreateOrg.\n\n```go\ntype CreateOrgJSONRequestBody CreateOrgJSONBody\n```\nCreateOrgJSONRequestBody defines body for CreateOrg for application/json ContentType.\n\n```go\ntype CreateServiceJSONBody struct {\n\tLocalhostPort *int   `json:\"localhost_port,omitempty\"`\n\tName          string `json:\"name\"`\n\tRelationships struct {\n\t\tOrganization RelationshipsOrganizationSlug `json:\"organization\"`\n\t} `json:\"relationships\"`\n\tServerType string `json:\"server_type\"`\n}\n```\nCreateServiceJSONBody defines parameters for CreateService.\n\n```go\ntype CreateServiceJSONRequestBody CreateServiceJSONBody\n```\nCreateServiceJSONRequestBody defines body for CreateService for application/json ContentType.\n\n```go\ntype Credential struct {\n\t// CreatedAt UTC time when credential was created.\n\tCreatedAt time.Time `json:\"created_at\"`\n\n\t// Name name of credential\n\tName string `json:\"name\"`\n\n\t// Revision Current revision of credential\n\tRevision int64 `json:\"revision\"`\n\n\t// RevokedAt UTC time after which credential will be revoked\n\tRevokedAt *time.Time `json:\"revoked_at\"`\n\n\t// Serial serial id for credential\n\tSerial string `json:\"serial\"`\n\n\t// SignatureAlgorithm Algorithm used to sign credential\n\tSignatureAlgorithm interface{} `json:\"signature_algorithm\"`\n\n\t// Status current status of credential\n\tStatus CredentialStatus `json:\"status\"`\n\n\t// TextualEncoding base64 textual encoding of credential based on RFC7468\n\tTextualEncoding string `json:\"textual_encoding\"`\n\n\t// Uuid uuid for credential\n\tUuid *openapi_types.UUID `json:\"uuid,omitempty\"`\n\n\t// ValidAfter UTC time after which credential will be valid.\n\tValidAfter time.Time `json:\"valid_after\"`\n\n\t// ValidBefore UTC time after which credential will no longer be valid.\n\tValidBefore time.Time `json:\"valid_before\"`\n}\n```\nCredential defines model for credential.\n\n```go\ntype CredentialStatus string\n```\nCredentialStatus current status of credential\n\n```go\nconst (\n\tExpired CredentialStatus = \"expired\"\n\tOnline  CredentialStatus = \"online\"\n\tRevoked CredentialStatus = \"revoked\"\n)\n```\nDefines values for CredentialStatus.\n\n```go\ntype Credentials struct {\n\tItems []Credential `json:\"items\"`\n}\n```\nCredentials defines model for credentials.\n\n```go\ntype DetachOrgServiceJSONBody struct {\n\t// Domains A list of domains for this attachment.\n\tDomains []string `json:\"domains\"`\n\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tChain RelationshipsChainSlug `json:\"chain\"`\n\t\tRealm RelationshipsRealmSlug `json:\"realm\"`\n\t} `json:\"relationships\"`\n}\n```\nDetachOrgServiceJSONBody defines parameters for DetachOrgService.\n\n```go\ntype DetachOrgServiceJSONRequestBody DetachOrgServiceJSONBody\n```\nDetachOrgServiceJSONRequestBody defines body for DetachOrgService for application/json ContentType.\n\n```go\ntype Domain struct {\n\t// Apid A value used as a parameter when referencing this organization.\n\tApid string `json:\"apid\"`\n\n\t// Fqdn The fully qualified name of the domain.\n\tFqdn string `json:\"fqdn\"`\n\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tOrganization RelationshipsOrganizationApid `json:\"organization\"`\n\t} `json:\"relationships\"`\n\n\t// VerificationFqdn The fully qualified domain name to use as a CNAME for verification of the domain.\n\tVerificationFqdn string `json:\"verification_fqdn\"`\n}\n```\nDomain defines model for domain.\n\n```go\ntype Domains struct {\n\tItems []Domain `json:\"items\"`\n}\n```\nDomains defines model for domains.\n\n```go\ntype Eab struct {\n\t// HmacKey EAB HMAC key\n\tHmacKey string `json:\"hmac_key\"`\n\n\t// Identifiers An optional list of identifiers to limits what certificates this token may provision certificates for.\n\tIdentifiers []struct {\n\t\t// Type A type for the identifier, only `dns` is supported at this time.\n\t\tType EabIdentifiersType `json:\"type\"`\n\n\t\t// Value A value for the identifier.\n\t\tValue string `json:\"value\"`\n\t} `json:\"identifiers\"`\n\n\t// Kid EAB key identifier\n\tKid string `json:\"kid\"`\n\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tChain        RelationshipsChainSlug           `json:\"chain\"`\n\t\tOrganization RelationshipsOrganizationSlug    `json:\"organization\"`\n\t\tRealm        RelationshipsRealmSlug           `json:\"realm\"`\n\t\tService      RelationshipsServiceSlugNullable `json:\"service\"`\n\t\tSubCa        RelationshipsSubCaSlug           `json:\"sub_ca\"`\n\t} `json:\"relationships\"`\n}\n```\nEab defines model for eab.\n\n```go\ntype EabIdentifiersType string\n```\nEabIdentifiersType A type for the identifier, only \\`dns\\` is supported at this time.\n\n```go\nconst (\n\tEabIdentifiersTypeDns EabIdentifiersType = \"dns\"\n)\n```\nDefines values for EabIdentifiersType.\n\n```go\ntype Error struct {\n\t// Detail A human-readable description of this occurrence of the problem.\n\tDetail string `json:\"detail\"`\n\n\t// Status HTTP status code of this occurrence of the problem.\n\tStatus int32 `json:\"status\"`\n\n\t// Title A human-readable description of this problem type.\n\tTitle string `json:\"title\"`\n\n\t// Type URI identifying problem.\n\tType string `json:\"type\"`\n}\n```\nError defines model for error.\n\n```go\ntype Filter[T any] func(s []T) []T\n```\n\n```go\ntype Filters[T any] []Filter[T]\n```\n\n```go\nfunc (f Filters[T]) Apply(s []T) []T\n```\n\n```go\ntype GetCredentialsParams struct {\n\t// CaParam ca for operation\n\tCaParam *QueryCaParam `form:\"ca_param,omitempty\" json:\"ca_param,omitempty\"`\n\n\t// SubjectUidParam subject uid for operation\n\tSubjectUidParam *QuerySubjectUidParam `form:\"subject_uid_param,omitempty\" json:\"subject_uid_param,omitempty\"`\n}\n```\nGetCredentialsParams defines parameters for GetCredentials.\n\n```go\ntype Middleware interface {\n\tRoundTripper(next http.RoundTripper) http.RoundTripper\n}\n```\n\n```go\ntype MiddlewareFunc func(next http.RoundTripper) http.RoundTripper\n```\n\n```go\nfunc (fn MiddlewareFunc) RoundTripper(next http.RoundTripper) http.RoundTripper\n```\n\n```go\ntype Middlewares []Middleware\n```\n\n```go\nfunc (m Middlewares) RoundTripper(tport *http.Transport) http.RoundTripper\n```\n\n```go\ntype Organization struct {\n\t// Apid A value used as a parameter when referencing this organization.\n\tApid string `json:\"apid\"`\n\n\t// Name The name for this organization.\n\tName string `json:\"name\"`\n\n\t// Slug The slugified name for this organization.\n\tSlug string `json:\"slug\"`\n}\n```\nOrganization defines model for organization.\n\n```go\nfunc (o Organization) Key() string\n```\n\n```go\nfunc (o Organization) Plural() string\n```\n\n```go\nfunc (o Organization) Singular() string\n```\n\n```go\nfunc (o Organization) String() string\n```\n\n```go\ntype Organizations struct {\n\tItems []Organization `json:\"items\"`\n}\n```\nOrganizations defines model for organizations.\n\n```go\ntype PathDomainParam = string\n```\nPathDomainParam defines model for path\\_domain\\_param.\n\n```go\ntype PathEabTokenParam = string\n```\nPathEabTokenParam defines model for path\\_eab\\_token\\_param.\n\n```go\ntype PathOrgParam = string\n```\nPathOrgParam defines model for path\\_org\\_param.\n\n```go\ntype PathRealmParam = string\n```\nPathRealmParam defines model for path\\_realm\\_param.\n\n```go\ntype PathServiceParam = string\n```\nPathServiceParam defines model for path\\_service\\_param.\n\n```go\ntype QueryCaParam = string\n```\nQueryCaParam defines model for query\\_ca\\_param.\n\n```go\ntype QueryParam func(url.Values)\n```\n\n```go\nfunc SubCA(apid string) QueryParam\n```\n\n```go\ntype QueryParams []QueryParam\n```\n\n```go\nfunc (q QueryParams) Apply(u *url.URL)\n```\n\n```go\ntype QuerySubjectUidParam = string\n```\nQuerySubjectUidParam defines model for query\\_subject\\_uid\\_param.\n\n```go\ntype Realm struct {\n\t// Apid A value used as a parameter when referencing this realm.\n\tApid string `json:\"apid\"`\n\n\t// Name The name for this realm.\n\tName string `json:\"name\"`\n\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tOrganization RelationshipsOrganizationApid `json:\"organization\"`\n\t} `json:\"relationships\"`\n\n\t// Slug The slugified name for this realm.\n\tSlug string `json:\"slug\"`\n}\n```\nRealm defines model for realm.\n\n```go\nfunc (r Realm) Key() string\n```\n\n```go\nfunc (r Realm) Plural() string\n```\n\n```go\nfunc (r Realm) Singular() string\n```\n\n```go\nfunc (r Realm) String() string\n```\n\n```go\ntype Realms struct {\n\tItems []Realm `json:\"items\"`\n}\n```\nRealms defines model for realms.\n\n```go\ntype RelationshipsAcmeCaApid struct {\n\t// Apid A value used as a parameter when referencing this ACME CA.\n\tApid string `json:\"apid\"`\n}\n```\nRelationshipsAcmeCaApid defines model for relationships\\_acme\\_ca\\_apid.\n\n```go\ntype RelationshipsChainApid struct {\n\t// Apid A value used as a parameter when referencing this chain.\n\tApid string `json:\"apid\"`\n}\n```\nRelationshipsChainApid defines model for relationships\\_chain\\_apid.\n\n```go\ntype RelationshipsChainSlug struct {\n\t// Slug A value used as a parameter when referencing this chain.\n\tSlug string `json:\"slug\"`\n}\n```\nRelationshipsChainSlug defines model for relationships\\_chain\\_slug.\n\n```go\ntype RelationshipsDomainApid struct {\n\t// Apid A value used as a parameter when referencing this domain.\n\tApid string `json:\"apid\"`\n}\n```\nRelationshipsDomainApid defines model for relationships\\_domain\\_apid.\n\n```go\ntype RelationshipsOrganizationApid struct {\n\t// Apid A value used as a parameter when referencing this organization.\n\tApid string `json:\"apid\"`\n}\n```\nRelationshipsOrganizationApid defines model for relationships\\_organization\\_apid.\n\n```go\ntype RelationshipsOrganizationSlug struct {\n\t// Slug A value used as a parameter when referencing this organization.\n\tSlug string `json:\"slug\"`\n}\n```\nRelationshipsOrganizationSlug defines model for relationships\\_organization\\_slug.\n\n```go\ntype RelationshipsRealmApid struct {\n\t// Apid A value used as a parameter when referencing this realm.\n\tApid string `json:\"apid\"`\n}\n```\nRelationshipsRealmApid defines model for relationships\\_realm\\_apid.\n\n```go\ntype RelationshipsRealmSlug struct {\n\t// Slug A value used as a parameter when referencing this realm.\n\tSlug string `json:\"slug\"`\n}\n```\nRelationshipsRealmSlug defines model for relationships\\_realm\\_slug.\n\n```go\ntype RelationshipsServiceApid struct {\n\t// Apid A value used as a parameter when referencing this service.\n\tApid string `json:\"apid\"`\n}\n```\nRelationshipsServiceApid defines model for relationships\\_service\\_apid.\n\n```go\ntype RelationshipsServiceSlug struct {\n\t// Slug A value used as a parameter when referencing this service.\n\tSlug string `json:\"slug\"`\n}\n```\nRelationshipsServiceSlug defines model for relationships\\_service\\_slug.\n\n```go\ntype RelationshipsServiceSlugNullable struct {\n\t// Slug A value used as a parameter when referencing this service.\n\tSlug *string `json:\"slug\"`\n}\n```\nRelationshipsServiceSlugNullable defines model for relationships\\_service\\_slug\\_nullable.\n\n```go\ntype RelationshipsSubCaApidNullable struct {\n\t// Apid A value used as a parameter when referencing this sub_ca.\n\tApid *string `json:\"apid\"`\n}\n```\nRelationshipsSubCaApidNullable defines model for relationships\\_sub\\_ca\\_apid\\_nullable.\n\n```go\ntype RelationshipsSubCaSlug struct {\n\t// Slug A value used as a parameter when referencing this sub_ca.\n\tSlug string `json:\"slug\"`\n}\n```\nRelationshipsSubCaSlug defines model for relationships\\_sub\\_ca\\_slug.\n\n```go\ntype Root struct {\n\tMinimumCliVersion string `json:\"minimum_cli_version\"`\n\tPersonalOrg       struct {\n\t\tSlug string `json:\"slug\"`\n\t} `json:\"personal_org\"`\n\tWhoami string `json:\"whoami\"`\n}\n```\nRoot defines model for root.\n\n```go\ntype RoundTripFunc func(*http.Request) (*http.Response, error)\n```\n\n```go\nfunc (fn RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error)\n```\n\n```go\ntype Service struct {\n\t// LocalhostPort A port number for use on localhost or null.\n\tLocalhostPort *int `json:\"localhost_port\"`\n\n\t// Name A name for the service.\n\tName string `json:\"name\"`\n\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tOrganization RelationshipsOrganizationSlug `json:\"organization\"`\n\t} `json:\"relationships\"`\n\n\t// ServerType A server type for the service.\n\tServerType ServiceServerType `json:\"server_type\"`\n\n\t// Slug A value used as a parameter when referencing this service.\n\tSlug string `json:\"slug\"`\n}\n```\nService defines model for service.\n\n```go\nfunc NonDiagnosticServices(s []Service) []Service\n```\n\n```go\nfunc (s Service) Key() string\n```\n\n```go\nfunc (s Service) Plural() string\n```\n\n```go\nfunc (s Service) Singular() string\n```\n\n```go\nfunc (s Service) String() string\n```\n\n```go\ntype ServiceServerType string\n```\nServiceServerType A server type for the service.\n\n```go\nconst (\n\tServiceServerTypeCaddy      ServiceServerType = \"caddy\"\n\tServiceServerTypeCustom     ServiceServerType = \"custom\"\n\tServiceServerTypeDiagnostic ServiceServerType = \"diagnostic\"\n\tServiceServerTypeGo         ServiceServerType = \"go\"\n\tServiceServerTypeJavascript ServiceServerType = \"javascript\"\n\tServiceServerTypePython     ServiceServerType = \"python\"\n\tServiceServerTypeRuby       ServiceServerType = \"ruby\"\n)\n```\nDefines values for ServiceServerType.\n\n```go\ntype Services struct {\n\tItems []Service `json:\"items\"`\n}\n```\nServices defines model for services.\n\n```go\ntype ServicesXtach struct {\n\t// Domains A list of domains for this attachment.\n\tDomains []string `json:\"domains\"`\n\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tChain RelationshipsChainSlug `json:\"chain\"`\n\t\tRealm RelationshipsRealmSlug `json:\"realm\"`\n\t} `json:\"relationships\"`\n}\n```\nServicesXtach defines model for services\\_xtach.\n\n```go\ntype ServicesXtach200 struct {\n\t// Domains A list of domains for this attachment.\n\tDomains []string `json:\"domains\"`\n\n\t// Relationships Values used as parameters when referencing related resources.\n\tRelationships struct {\n\t\tChain        RelationshipsChainSlug        `json:\"chain\"`\n\t\tOrganization RelationshipsOrganizationSlug `json:\"organization\"`\n\t\tRealm        *RelationshipsRealmSlug       `json:\"realm,omitempty\"`\n\t\tService      RelationshipsServiceSlug      `json:\"service\"`\n\t\tSubCa        RelationshipsSubCaSlug        `json:\"sub_ca\"`\n\t} `json:\"relationships\"`\n}\n```\nServicesXtach200 defines model for services\\_xtach\\_200.\n\n```go\ntype Session struct {\n\t*http.Client\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClient(ctx context.Context, cfg *cli.Config) (*Session, error)\n```\nTODO: rename to NewSession\n\n```go\nfunc (s *Session) AttachService(ctx context.Context, chainSlug string, domains []string, orgSlug, realmSlug, serviceSlug string) (*ServicesXtach200, error)\n```\n\n```go\nfunc (s *Session) CreateEAB(ctx context.Context, chainSlug, orgSlug, realmSlug, serviceSlug, subCASlug string) (*Eab, error)\n```\n\n```go\nfunc (s *Session) CreateOrg(ctx context.Context, orgName string) (*Organization, error)\n```\n\n```go\nfunc (s *Session) CreatePATToken(ctx context.Context, deviceCode string) (string, error)\n```\n\n```go\nfunc (s *Session) CreateService(ctx context.Context, orgSlug, serviceName, serverType string, localhostPort *int) (*Service, error)\n```\n\n```go\nfunc (s *Session) FetchCredentials(ctx context.Context, orgSlug, realmSlug string) ([]Credential, error)\n```\n\n```go\nfunc (s *Session) GenerateUserFlowCodes(ctx context.Context, source string) (*AuthCliCodesResponse, error)\n```\n\n```go\nfunc (s *Session) GetCredentials(ctx context.Context, orgSlug, realmSlug string, params ...QueryParam) ([]Credential, error)\n```\n\n```go\nfunc (s *Session) GetOrgRealms(ctx context.Context, orgApid string) ([]Realm, error)\n```\n\n```go\nfunc (s *Session) GetOrgServices(ctx context.Context, orgSlug string, filters ...Filter[Service]) ([]Service, error)\n```\n\n```go\nfunc (s *Session) GetOrgs(ctx context.Context) ([]Organization, error)\n```\n\n```go\nfunc (s *Session) GetService(ctx context.Context, orgSlug, serviceSlug string) (*Service, error)\n```\n\n```go\nfunc (s *Session) GetServiceAttachments(ctx context.Context, orgAPID string, serviceAPID string) ([]Attachment, error)\n```\n\n```go\nfunc (s *Session) UserInfo(ctx context.Context) (*Root, error)\n```\n\n```go\ntype StatusCodeError int\n```\n\n```go\nfunc (err StatusCodeError) Error() string\n```\n\n```go\nfunc (err StatusCodeError) StatusCode() int\n```\n\n","path":"github.com/anchordotdev/cli/api","name":"api","synopsis":"Package api provides primitives to interact with the openapi HTTP API.","isRedistributable":true}
