Help us shape the future of Go! Take the 2026 Go Developer Survey

services

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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 MegacliteService struct {
	Name        string `json:"name"`
	Credentials struct {
		URL string `json:"url"`
	} `json:"credentials"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL