{"modulePath":"github.com/flashbots/cvm-reverse-proxy","version":"v0.1.9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package clouds\n\nCopyright 2012-2013 Rackspace, Inc. Copyright Gophercloud authors Copyright (c) Edgeless Systems GmbH\n\nSPDX-License-Identifier: Apache-2.0\n\n### Copyright (c) Edgeless Systems GmbH {#hdr-Copyright__c__Edgeless_Systems_GmbH}\n\nSPDX-License-Identifier: AGPL-3.0-only\n\n## Types\n\n```go\ntype AuthInfo struct {\n\t// AuthURL is the keystone/identity endpoint URL.\n\tAuthURL string `yaml:\"auth_url,omitempty\" json:\"auth_url,omitempty\"`\n\n\t// Token is a pre-generated authentication token.\n\tToken string `yaml:\"token,omitempty\" json:\"token,omitempty\"`\n\n\t// Username is the username of the user.\n\tUsername string `yaml:\"username,omitempty\" json:\"username,omitempty\"`\n\n\t// UserID is the unique ID of a user.\n\tUserID string `yaml:\"user_id,omitempty\" json:\"user_id,omitempty\"`\n\n\t// Password is the password of the user.\n\tPassword string `yaml:\"password,omitempty\" json:\"password,omitempty\"`\n\n\t// Application Credential ID to login with.\n\tApplicationCredentialID string `yaml:\"application_credential_id,omitempty\" json:\"application_credential_id,omitempty\"`\n\n\t// Application Credential name to login with.\n\tApplicationCredentialName string `yaml:\"application_credential_name,omitempty\" json:\"application_credential_name,omitempty\"`\n\n\t// Application Credential secret to login with.\n\tApplicationCredentialSecret string `yaml:\"application_credential_secret,omitempty\" json:\"application_credential_secret,omitempty\"`\n\n\t// SystemScope is a system information to scope to.\n\tSystemScope string `yaml:\"system_scope,omitempty\" json:\"system_scope,omitempty\"`\n\n\t// ProjectName is the common/human-readable name of a project.\n\t// Users can be scoped to a project.\n\t// ProjectName on its own is not enough to ensure a unique scope. It must\n\t// also be combined with either a ProjectDomainName or ProjectDomainID.\n\t// ProjectName cannot be combined with ProjectID in a scope.\n\tProjectName string `yaml:\"project_name,omitempty\" json:\"project_name,omitempty\"`\n\n\t// ProjectID is the unique ID of a project.\n\t// It can be used to scope a user to a specific project.\n\tProjectID string `yaml:\"project_id,omitempty\" json:\"project_id,omitempty\"`\n\n\t// UserDomainName is the name of the domain where a user resides.\n\t// It is used to identify the source domain of a user.\n\tUserDomainName string `yaml:\"user_domain_name,omitempty\" json:\"user_domain_name,omitempty\"`\n\n\t// UserDomainID is the unique ID of the domain where a user resides.\n\t// It is used to identify the source domain of a user.\n\tUserDomainID string `yaml:\"user_domain_id,omitempty\" json:\"user_domain_id,omitempty\"`\n\n\t// ProjectDomainName is the name of the domain where a project resides.\n\t// It is used to identify the source domain of a project.\n\t// ProjectDomainName can be used in addition to a ProjectName when scoping\n\t// a user to a specific project.\n\tProjectDomainName string `yaml:\"project_domain_name,omitempty\" json:\"project_domain_name,omitempty\"`\n\n\t// ProjectDomainID is the name of the domain where a project resides.\n\t// It is used to identify the source domain of a project.\n\t// ProjectDomainID can be used in addition to a ProjectName when scoping\n\t// a user to a specific project.\n\tProjectDomainID string `yaml:\"project_domain_id,omitempty\" json:\"project_domain_id,omitempty\"`\n\n\t// DomainName is the name of a domain which can be used to identify the\n\t// source domain of either a user or a project.\n\t// If UserDomainName and ProjectDomainName are not specified, then DomainName\n\t// is used as a default choice.\n\t// It can also be used be used to specify a domain-only scope.\n\tDomainName string `yaml:\"domain_name,omitempty\" json:\"domain_name,omitempty\"`\n\n\t// DomainID is the unique ID of a domain which can be used to identify the\n\t// source domain of eitehr a user or a project.\n\t// If UserDomainID and ProjectDomainID are not specified, then DomainID is\n\t// used as a default choice.\n\t// It can also be used be used to specify a domain-only scope.\n\tDomainID string `yaml:\"domain_id,omitempty\" json:\"domain_id,omitempty\"`\n\n\t// DefaultDomain is the domain ID to fall back on if no other domain has\n\t// been specified and a domain is required for scope.\n\tDefaultDomain string `yaml:\"default_domain,omitempty\" json:\"default_domain,omitempty\"`\n\n\t// AllowReauth should be set to true if you grant permission for Gophercloud to\n\t// cache your credentials in memory, and to allow Gophercloud to attempt to\n\t// re-authenticate automatically if/when your token expires.  If you set it to\n\t// false, it will not cache these settings, but re-authentication will not be\n\t// possible.  This setting defaults to false.\n\tAllowReauth bool `yaml:\"allow_reauth,omitempty\" json:\"allow_reauth,omitempty\"`\n}\n```\nAuthInfo represents the auth section of a cloud entry or auth options entered explicitly in ClientOpts.\n\n```go\ntype AuthType string\n```\nAuthType respresents a valid method of authentication.\n\n```go\nconst (\n\t// AuthPassword defines an unknown version of the password.\n\tAuthPassword AuthType = \"password\"\n\t// AuthToken defined an unknown version of the token.\n\tAuthToken AuthType = \"token\"\n\n\t// AuthV2Password defines version 2 of the password.\n\tAuthV2Password AuthType = \"v2password\"\n\t// AuthV2Token defines version 2 of the token.\n\tAuthV2Token AuthType = \"v2token\"\n\n\t// AuthV3Password defines version 3 of the password.\n\tAuthV3Password AuthType = \"v3password\"\n\t// AuthV3Token defines version 3 of the token.\n\tAuthV3Token AuthType = \"v3token\"\n\n\t// AuthV3ApplicationCredential defines version 3 of the application credential.\n\tAuthV3ApplicationCredential AuthType = \"v3applicationcredential\"\n)\n```\n\n```go\ntype Cloud struct {\n\tCloud      string    `yaml:\"cloud,omitempty\" json:\"cloud,omitempty\"`\n\tProfile    string    `yaml:\"profile,omitempty\" json:\"profile,omitempty\"`\n\tAuthInfo   *AuthInfo `yaml:\"auth,omitempty\" json:\"auth,omitempty\"`\n\tAuthType   AuthType  `yaml:\"auth_type,omitempty\" json:\"auth_type,omitempty\"`\n\tRegionName string    `yaml:\"region_name,omitempty\" json:\"region_name,omitempty\"`\n\tRegions    []Region  `yaml:\"regions,omitempty\" json:\"regions,omitempty\"`\n\n\t// EndpointType and Interface both specify whether to use the public, internal,\n\t// or admin interface of a service. They should be considered synonymous, but\n\t// EndpointType will take precedence when both are specified.\n\tEndpointType string `yaml:\"endpoint_type,omitempty\" json:\"endpoint_type,omitempty\"`\n\tInterface    string `yaml:\"interface,omitempty\" json:\"interface,omitempty\"`\n\n\t// API Version overrides.\n\tIdentityAPIVersion string `yaml:\"identity_api_version,omitempty\" json:\"identity_api_version,omitempty\"`\n\tVolumeAPIVersion   string `yaml:\"volume_api_version,omitempty\" json:\"volume_api_version,omitempty\"`\n\n\t// Verify whether or not SSL API requests should be verified.\n\tVerify *bool `yaml:\"verify,omitempty\" json:\"verify,omitempty\"`\n\n\t// CACertFile a path to a CA Cert bundle that can be used as part of\n\t// verifying SSL API requests.\n\tCACertFile string `yaml:\"cacert,omitempty\" json:\"cacert,omitempty\"`\n\n\t// ClientCertFile a path to a client certificate to use as part of the SSL\n\t// transaction.\n\tClientCertFile string `yaml:\"cert,omitempty\" json:\"cert,omitempty\"`\n\n\t// ClientKeyFile a path to a client key to use as part of the SSL\n\t// transaction.\n\tClientKeyFile string `yaml:\"key,omitempty\" json:\"key,omitempty\"`\n}\n```\nCloud represents an entry in a clouds.yaml/public-clouds.yaml/secure.yaml file.\n\n```go\ntype Clouds struct {\n\tClouds map[string]Cloud `yaml:\"clouds\" json:\"clouds\"`\n}\n```\nClouds represents a collection of Cloud entries in a clouds.yaml file.\n\n```go\nfunc ReadCloudsYAML(fileHandler file.Handler, path string) (Clouds, error)\n```\nReadCloudsYAML reads a clouds.yaml file and returns its contents.\n\n```go\ntype Region struct {\n\tName   string `yaml:\"name,omitempty\" json:\"name,omitempty\"`\n\tValues Cloud  `yaml:\"values,omitempty\" json:\"values,omitempty\"`\n}\n```\nRegion represents a region included as part of cloud in clouds.yaml According to Python-based openstacksdk, this can be either a struct (as defined) or a plain string. Custom unmarshallers handle both cases.\n\n```go\nfunc (r *Region) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON handles either a plain string acting as the Name property or a struct, mimicking the Python-based openstacksdk.\n\n```go\nfunc (r *Region) UnmarshalYAML(unmarshal func(interface{}) error) error\n```\nUnmarshalYAML handles either a plain string acting as the Name property or a struct, mimicking the Python-based openstacksdk.\n\n","path":"github.com/flashbots/cvm-reverse-proxy/internal/cloud/openstack/clouds","name":"clouds","synopsis":"","isRedistributable":true}
