fly

package
v0.0.0-...-56aa1ee Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConcourseUpVersion = "COMPILE_TIME_VARIABLE_fly_concourse_up_version"

ConcourseUpVersion is a compile-time variable set with -ldflags

Functions

This section is empty.

Types

type AWSCredsGetter

type AWSCredsGetter = func() (string, string, error)

type AWSPipeline

type AWSPipeline struct {
	PipelineTemplateParams
	AWSAccessKeyID     string
	AWSSecretAccessKey string
	// contains filtered or unexported fields
}

AWSPipeline is AWS specific implementation of Pipeline interface

func (AWSPipeline) BuildPipelineParams

func (a AWSPipeline) BuildPipelineParams(deployment, namespace, region, domain string) (Pipeline, error)

BuildPipelineParams builds params for AWS concourse-up self update pipeline

func (AWSPipeline) GetConfigTemplate

func (a AWSPipeline) GetConfigTemplate() string

GetConfigTemplate returns template for AWS Concourse Up self update pipeline

type Client

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

Client represents a low-level wrapper for fly

func (*Client) CanConnect

func (client *Client) CanConnect() (bool, error)

CanConnect returns true if it can connect to the concourse

func (*Client) Cleanup

func (client *Client) Cleanup() error

Cleanup removes tempfiles

func (*Client) SetDefaultPipeline

func (client *Client) SetDefaultPipeline(config config.Config, allowFlyVersionDiscrepancy bool) error

SetDefaultPipeline sets the default pipeline against a given concourse

type Credentials

type Credentials struct {
	Target   string
	API      string
	Username string
	Password string
	CACert   string
}

Credentials represents credentials needed to connect to concourse

type GCPPipeline

type GCPPipeline struct {
	PipelineTemplateParams
	GCPCreds string
}

GCPPipeline is GCP specific implementation of Pipeline interface

func (GCPPipeline) BuildPipelineParams

func (a GCPPipeline) BuildPipelineParams(deployment, namespace, region, domain string) (Pipeline, error)

BuildPipelineParams builds params for AWS concourse-up self update pipeline

func (GCPPipeline) GetConfigTemplate

func (a GCPPipeline) GetConfigTemplate() string

GetConfigTemplate returns template for AWS Concourse Up self update pipeline

type IClient

type IClient interface {
	CanConnect() (bool, error)
	SetDefaultPipeline(config config.Config, allowFlyVersionDiscrepancy bool) error
	Cleanup() error
}

func New

func New(provider iaas.Provider, creds Credentials, stdout, stderr io.Writer, versionFile []byte) (IClient, error)

New returns a new fly client

type Pipeline

type Pipeline interface {
	BuildPipelineParams(deployment, namespace, region, domain string) (Pipeline, error)
	GetConfigTemplate() string
}

Pipeline is interface for self update pipeline

func NewAWSPipeline

func NewAWSPipeline(getter AWSCredsGetter) Pipeline

NewAWSPipeline return AWSPipeline

func NewGCPPipeline

func NewGCPPipeline(credsPath string) (Pipeline, error)

NewGCPPipeline return GCPPipeline

type PipelineTemplateParams

type PipelineTemplateParams struct {
	ConcourseUpVersion string
	Deployment         string
	Domain             string
	Namespace          string
	Region             string
}

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