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

supply

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientTLS added in v0.2.0

type ClientTLS struct {
	Cert string `json:"cert,omitempty"`
	Key  string `json:"private_key,omitempty"`
}

type Cloudfoundry

type Cloudfoundry struct {
	SidecarFor []string `yaml:"sidecar_for" json:"sidecar_for"`
}

type Command

type Command interface {
	// TODO: See more options at https://github.com/cloudfoundry/libbuildpack/blob/master/command.go
	Execute(string, io.Writer, io.Writer, string, ...string) error
	Output(dir string, program string, args ...string) (string, error)
}

type Credentials

type Credentials struct {
	ClientTLS *ClientTLS `json:"client_tls,omitempty"` // storage gateway bundle access
}

type Installer

type Installer interface {
	// TODO: See more options at https://github.com/cloudfoundry/libbuildpack/blob/master/installer.go
	InstallDependency(libbuildpack.Dependency, string) error
	InstallOnlyVersion(string, string) error
}

type LaunchData

type LaunchData struct {
	Processes []Process `yaml:"processes" json:"processes"`
}

type Limits

type Limits struct {
	Memory int `yaml:"memory" json:"memory"`
}

type Manifest

type Manifest interface {
	// TODO: See more options at https://github.com/cloudfoundry/libbuildpack/blob/master/manifest.go
	AllDependencyVersions(string) []string
	DefaultVersion(string) (libbuildpack.Dependency, error)
}

type OPAConfig

type OPAConfig struct {
	Bundles  map[string]*bundle.Source `json:"bundles"`
	Services map[string]OPARestConfig  `json:"services"`
	Plugins  map[string]bool           `json:"plugins,omitempty"`
	Status   map[string]string         `json:"status,omitempty"`
}

type OPARestConfig added in v0.4.1

type OPARestConfig struct {
	URL         string `json:"url"`
	Headers     map[string]string
	Credentials Credentials `json:"credentials"`
}

type Platforms

type Platforms struct {
	Cloudfoundry Cloudfoundry `yaml:"cloudfoundry" json:"cloudfoundry"`
}

type Process

type Process struct {
	Type      string    `yaml:"type" json:"type"`
	Command   string    `yaml:"command" json:"command"`
	Platforms Platforms `yaml:"platforms" json:"platforms"`
	Limits    Limits    `yaml:"limits" json:"limits"`
}

type Supplier

type Supplier struct {
	Manifest            Manifest
	Installer           Installer
	Stager              *libbuildpack.Stager
	Command             Command
	Log                 *libbuildpack.Logger
	BuildpackDir        string
	GetClient           func(cert, key []byte) (uploader.AMSClient, error)
	CertCopierSourceDir string
}

func (*Supplier) Run

func (s *Supplier) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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