creds

package
v4.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ManagerFactories

func ManagerFactories() map[string]ManagerFactory

func Register

func Register(name string, managerFactory ManagerFactory)

Types

type HealthResponse

type HealthResponse struct {
	Response interface{} `json:"response,omitempty"`
	Error    string      `json:"error,omitempty"`
	Method   string      `json:"method,omitempty"`
}

type Manager

type Manager interface {
	IsConfigured() bool
	Validate() error
	Health() (*HealthResponse, error)
	Init(lager.Logger) error

	NewVariablesFactory(lager.Logger) (VariablesFactory, error)
}

type ManagerFactory

type ManagerFactory interface {
	AddConfig(*flags.Group) Manager
}

type Managers

type Managers map[string]Manager

type Params

type Params struct {
	// contains filtered or unexported fields
}

func NewParams

func NewParams(variables Variables, params atc.Params) Params

func (Params) Evaluate

func (p Params) Evaluate() (atc.Params, error)

type Source

type Source struct {
	// contains filtered or unexported fields
}

func NewSource

func NewSource(variables Variables, source atc.Source) Source

func (Source) Evaluate

func (s Source) Evaluate() (atc.Source, error)

type String

type String struct {
	// contains filtered or unexported fields
}

func NewString

func NewString(variables Variables, credString string) String

func (String) Evaluate

func (s String) Evaluate() (string, error)

type TaskParams

type TaskParams struct {
	// contains filtered or unexported fields
}

func NewTaskParams

func NewTaskParams(variables Variables, params map[string]string) TaskParams

func (TaskParams) Evaluate

func (s TaskParams) Evaluate() (map[string]string, error)

type Variables

type Variables interface {
	Get(template.VariableDefinition) (interface{}, bool, error)
	List() ([]template.VariableDefinition, error)
}

type VariablesFactory

type VariablesFactory interface {
	NewVariables(string, string) Variables
}

type VersionedResourceType

type VersionedResourceType struct {
	atc.VersionedResourceType

	Source Source
}

type VersionedResourceTypes

type VersionedResourceTypes []VersionedResourceType

func NewVersionedResourceTypes

func NewVersionedResourceTypes(variables Variables, rawTypes atc.VersionedResourceTypes) VersionedResourceTypes

func (VersionedResourceTypes) Lookup

func (VersionedResourceTypes) Without

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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