{"modulePath":"github.com/ActiveState/cli","version":"v0.0.0-20261125184344-355e69c2df15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package secrets_client\n\n## Constants\n\n```go\nconst (\n\t// DefaultHost is the default Host\n\t// found in Meta (info) section of spec file\n\tDefaultHost string = \"localhost\"\n\t// DefaultBasePath is the default BasePath\n\t// found in Meta (info) section of spec file\n\tDefaultBasePath string = \"/api/secrets/v1\"\n)\n```\n\n## Variables\n\n```go\nvar Default = NewHTTPClient(nil)\n```\nDefault secrets HTTP client.\n\n```go\nvar DefaultSchemes = []string{\"http\"}\n```\nDefaultSchemes are the default schemes found in Meta (info) section of spec file\n\n## Types\n\n```go\ntype Secrets struct {\n\tAuthentication *authentication.Client\n\n\tKeys *keys.Client\n\n\tSecrets *secrets.Client\n\n\tTransport runtime.ClientTransport\n}\n```\nSecrets is a client for secrets\n\n```go\nfunc New(transport runtime.ClientTransport, formats strfmt.Registry) *Secrets\n```\nNew creates a new secrets client\n\n```go\nfunc NewHTTPClient(formats strfmt.Registry) *Secrets\n```\nNewHTTPClient creates a new secrets HTTP client.\n\n```go\nfunc NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Secrets\n```\nNewHTTPClientWithConfig creates a new secrets HTTP client, using a customizable transport config.\n\n```go\nfunc (c *Secrets) SetTransport(transport runtime.ClientTransport)\n```\nSetTransport changes the transport on the client and all its subresources\n\n```go\ntype TransportConfig struct {\n\tHost     string\n\tBasePath string\n\tSchemes  []string\n}\n```\nTransportConfig contains the transport related info, found in the meta section of the spec file.\n\n```go\nfunc DefaultTransportConfig() *TransportConfig\n```\nDefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.\n\n```go\nfunc (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig\n```\nWithBasePath overrides the default basePath, provided by the meta section of the spec file.\n\n```go\nfunc (cfg *TransportConfig) WithHost(host string) *TransportConfig\n```\nWithHost overrides the default host, provided by the meta section of the spec file.\n\n```go\nfunc (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig\n```\nWithSchemes overrides the default schemes, provided by the meta section of the spec file.\n\n","path":"github.com/ActiveState/cli/pkg/platform/api/secrets/secrets_client","name":"secrets_client","synopsis":"","isRedistributable":true}
