Documentation
¶
Index ¶
Constants ¶
View Source
const EndpointsURI = "https://api.cloud.ru/endpoints"
EndpointsURI is the URI for getting the actual Cloud.ru API endpoints.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
IAM struct {
Address string `env:"ADDRESS"`
ClientID string `env:"CLIENT_ID,file,required,notEmpty"`
ClientSecret string `env:"CLIENT_SECRET,file,required,notEmpty" json:"-"`
} `envPrefix:"IAM_"`
CSM struct {
Address string `env:"ADDRESS"`
} `envPrefix:"CSM_"`
DiscoveryURL string `env:"DISCOVERY_URL"`
ProjectID string `env:"PROJECT_ID,required"`
}
type EndpointsResponse ¶
type EndpointsResponse struct {
// Endpoints contains the list of actual API addresses of Cloud.ru products.
Endpoints []Endpoint `json:"endpoints"`
}
EndpointsResponse is a response from the Cloud.ru API.
func (*EndpointsResponse) Get ¶
func (er *EndpointsResponse) Get(id string) *Endpoint
Get returns the API address of the product by its ID. If the product is not found, the function returns nil.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) CreateSecret ¶
func (*Provider) GetSecretPayload ¶
Click to show internal directories.
Click to hide internal directories.