Documentation
¶
Index ¶
Constants ¶
View Source
const MegacliteID = "dwc-megaclite-ams-instance-id"
Variables ¶
This section is empty.
Functions ¶
func LoadIASClientCert ¶
func LoadIASClientCert(log *libbuildpack.Logger) (cert, key []byte, err error)
Types ¶
type AMSCredentials ¶
type AMSCredentials struct {
BundleURL string `json:"bundle_url" validate:"required_without=ObjectStore"`
ObjectStore *ObjectStoreCredentials `json:"object_store" validate:"required_without=BundleURL"`
URL string `json:"url" validate:"required"`
InstanceID string `json:"instance_id"`
}
AMSCredentials are credentials from the legacy standalone authorization broker
func LoadAMSCredentials ¶
func LoadAMSCredentials(log *libbuildpack.Logger, cfg env.Config) (AMSCredentials, error)
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"`
}
type MegacliteService ¶
type ObjectStoreCredentials ¶
type ObjectStoreCredentials struct {
AccessKeyID string `json:"access_key_id" validate:"required"`
Bucket string `json:"bucket" validate:"required"`
Host string `json:"host" validate:"required"`
Region string `json:"region" validate:"required"`
SecretAccessKey string `json:"secret_access_key" validate:"required"`
URI string `json:"uri"`
Username string `json:"username"`
}
type Service ¶
type Service struct {
Name string `json:"name"`
Tags []string `json:"tags"`
Credentials json.RawMessage `json:"credentials"`
InstanceID string `json:"instance_guid"`
}
func LoadService ¶
func LoadService(log *libbuildpack.Logger, serviceName string) (Service, error)
type UnifiedIdentityCredentials ¶
type UnifiedIdentityCredentials struct {
IASCredentials
AuthzInstanceID string `json:"authorization_instance_id" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.