dare

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Logger       bard.Logger
	KeyProviders []KeyProvider
}

func (Build) Build

func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error)

type Decrypt

type Decrypt struct {
	ApplicationPath  string
	LayerContributor libpak.HelperLayerContributor
	Logger           bard.Logger
}

func NewDecrypt

func NewDecrypt(applicationPath string, buildpack libcnb.Buildpack, plan *libcnb.BuildpackPlan) Decrypt

func (Decrypt) Contribute

func (d Decrypt) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (Decrypt) Name

func (d Decrypt) Name() string

type Detect

type Detect struct {
	KeyProviders []KeyProvider
}

func (Detect) Detect

func (d Detect) Detect(context libcnb.DetectContext) (libcnb.DetectResult, error)

type Encrypt

type Encrypt struct {
	ApplicationPath  string
	Key              []byte
	LayerContributor libpak.LayerContributor
	Logger           bard.Logger
}

func NewEncrypt

func NewEncrypt(applicationPath string, key []byte) (Encrypt, error)

func (Encrypt) Contribute

func (e Encrypt) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (Encrypt) Name

func (Encrypt) Name() string

type EnvironmentVariableKeyProvider

type EnvironmentVariableKeyProvider struct {
	Logger bard.Logger
}

func (EnvironmentVariableKeyProvider) Detect

func (EnvironmentVariableKeyProvider) Key

func (EnvironmentVariableKeyProvider) Participate

type KeyProvider

type KeyProvider interface {
	Detect(context libcnb.DetectContext, result *libcnb.DetectResult) error
	Key(context libcnb.BuildContext) ([]byte, error)
	Participate(resolver libpak.PlanEntryResolver) (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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