Documentation
¶
Index ¶
Constants ¶
View Source
const ( MegacliteID = "dwc-megaclite-ams-instance-id" MegacliteAmsServerPath = "/ams/proxy/" MegacliteAmsBundleGatewayPath = "/ams/bundle/" )
Variables ¶
View Source
var (
ErrServiceNotFound = errors.New("service not found")
)
Functions ¶
This section is empty.
Types ¶
type IASCredentials ¶
type IASCredentials struct {
Certificate string `json:"certificate" validate:"required"`
CertificateExpiresAt time.Time `json:"certificate_expires_at"`
ClientID string `json:"clientid"`
Domain string `json:"domain"`
Domains []string `json:"domains"`
Key string `json:"key" validate:"required"`
OsbURL string `json:"osb_url"`
ProoftokenURL string `json:"prooftoken_url"`
URL string `json:"url"`
ZoneUUID string `json:"zone_uuid"`
AmsInstanceID string `json:"authorization_instance_id" validate:"required"`
AmsClientID string `json:"authorization_client_id"`
AmsBundleGatewayURL string `json:"authorization_bundle_url"`
// derived values
AmsServerURL string `json:"-"`
}
func LoadServiceCredentials ¶ added in v0.4.1
func LoadServiceCredentials(log Logger) (*IASCredentials, error)
type MegacliteCredentials ¶ added in v0.4.1
type MegacliteCredentials struct {
URL string `json:"url"`
}
Click to show internal directories.
Click to hide internal directories.