fakes

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigContents

type ConfigContents struct {
	EnvironmentURL    string
	EnvironmentAlias  string
	EnvironmentCACert string

	Called bool
}

type FakeConfig

type FakeConfig struct {
	EnvironmentStub func() string

	EnvironmentsStub func() []config.Environment

	ResolveEnvironmentStub func(urlOrAlias string) string

	SetEnvironmentStub func(urlOrAlias, alias, caCert string) config.Config

	CACertStub func(url string) string

	CredentialsStub func(url string) config.Creds

	SetCredentialsStub func(url string, creds config.Creds) config.Config

	UnsetCredentialsStub func(url string) config.Config

	DeploymentStub func(url string) string

	SetDeploymentStub func(url, nameOrPath string) config.Config

	SaveStub func() error
	// contains filtered or unexported fields
}

func (*FakeConfig) CACert

func (fake *FakeConfig) CACert(url string) string

func (*FakeConfig) CACertArgsForCall

func (fake *FakeConfig) CACertArgsForCall(i int) string

func (*FakeConfig) CACertCallCount

func (fake *FakeConfig) CACertCallCount() int

func (*FakeConfig) CACertReturns

func (fake *FakeConfig) CACertReturns(result1 string)

func (*FakeConfig) Credentials

func (fake *FakeConfig) Credentials(url string) config.Creds

func (*FakeConfig) CredentialsArgsForCall

func (fake *FakeConfig) CredentialsArgsForCall(i int) string

func (*FakeConfig) CredentialsCallCount

func (fake *FakeConfig) CredentialsCallCount() int

func (*FakeConfig) CredentialsReturns

func (fake *FakeConfig) CredentialsReturns(result1 config.Creds)

func (*FakeConfig) Deployment

func (fake *FakeConfig) Deployment(url string) string

func (*FakeConfig) DeploymentArgsForCall

func (fake *FakeConfig) DeploymentArgsForCall(i int) string

func (*FakeConfig) DeploymentCallCount

func (fake *FakeConfig) DeploymentCallCount() int

func (*FakeConfig) DeploymentReturns

func (fake *FakeConfig) DeploymentReturns(result1 string)

func (*FakeConfig) Environment

func (fake *FakeConfig) Environment() string

func (*FakeConfig) EnvironmentCallCount

func (fake *FakeConfig) EnvironmentCallCount() int

func (*FakeConfig) EnvironmentReturns

func (fake *FakeConfig) EnvironmentReturns(result1 string)

func (*FakeConfig) Environments

func (fake *FakeConfig) Environments() []config.Environment

func (*FakeConfig) EnvironmentsCallCount

func (fake *FakeConfig) EnvironmentsCallCount() int

func (*FakeConfig) EnvironmentsReturns

func (fake *FakeConfig) EnvironmentsReturns(result1 []config.Environment)

func (*FakeConfig) ResolveEnvironment

func (fake *FakeConfig) ResolveEnvironment(urlOrAlias string) string

func (*FakeConfig) ResolveEnvironmentArgsForCall

func (fake *FakeConfig) ResolveEnvironmentArgsForCall(i int) string

func (*FakeConfig) ResolveEnvironmentCallCount

func (fake *FakeConfig) ResolveEnvironmentCallCount() int

func (*FakeConfig) ResolveEnvironmentReturns

func (fake *FakeConfig) ResolveEnvironmentReturns(result1 string)

func (*FakeConfig) Save

func (fake *FakeConfig) Save() error

func (*FakeConfig) SaveCallCount

func (fake *FakeConfig) SaveCallCount() int

func (*FakeConfig) SaveReturns

func (fake *FakeConfig) SaveReturns(result1 error)

func (*FakeConfig) SetCredentials

func (fake *FakeConfig) SetCredentials(url string, creds config.Creds) config.Config

func (*FakeConfig) SetCredentialsArgsForCall

func (fake *FakeConfig) SetCredentialsArgsForCall(i int) (string, config.Creds)

func (*FakeConfig) SetCredentialsCallCount

func (fake *FakeConfig) SetCredentialsCallCount() int

func (*FakeConfig) SetCredentialsReturns

func (fake *FakeConfig) SetCredentialsReturns(result1 config.Config)

func (*FakeConfig) SetDeployment

func (fake *FakeConfig) SetDeployment(url string, nameOrPath string) config.Config

func (*FakeConfig) SetDeploymentArgsForCall

func (fake *FakeConfig) SetDeploymentArgsForCall(i int) (string, string)

func (*FakeConfig) SetDeploymentCallCount

func (fake *FakeConfig) SetDeploymentCallCount() int

func (*FakeConfig) SetDeploymentReturns

func (fake *FakeConfig) SetDeploymentReturns(result1 config.Config)

func (*FakeConfig) SetEnvironment

func (fake *FakeConfig) SetEnvironment(urlOrAlias string, alias string, caCert string) config.Config

func (*FakeConfig) SetEnvironmentArgsForCall

func (fake *FakeConfig) SetEnvironmentArgsForCall(i int) (string, string, string)

func (*FakeConfig) SetEnvironmentCallCount

func (fake *FakeConfig) SetEnvironmentCallCount() int

func (*FakeConfig) SetEnvironmentReturns

func (fake *FakeConfig) SetEnvironmentReturns(result1 config.Config)

func (*FakeConfig) UnsetCredentials

func (fake *FakeConfig) UnsetCredentials(url string) config.Config

func (*FakeConfig) UnsetCredentialsArgsForCall

func (fake *FakeConfig) UnsetCredentialsArgsForCall(i int) string

func (*FakeConfig) UnsetCredentialsCallCount

func (fake *FakeConfig) UnsetCredentialsCallCount() int

func (*FakeConfig) UnsetCredentialsReturns

func (fake *FakeConfig) UnsetCredentialsReturns(result1 config.Config)

type FakeConfig2

type FakeConfig2 struct {
	Existing ConfigContents

	Saved   *ConfigContents
	SaveErr error
}

func (*FakeConfig2) CACert

func (f *FakeConfig2) CACert(environment string) string

func (*FakeConfig2) Credentials

func (f *FakeConfig2) Credentials(environment string) config.Creds

func (*FakeConfig2) Deployment

func (f *FakeConfig2) Deployment(environment string) string

func (*FakeConfig2) Environment

func (f *FakeConfig2) Environment() string

func (*FakeConfig2) Environments

func (f *FakeConfig2) Environments() []config.Environment

func (*FakeConfig2) ResolveEnvironment

func (f *FakeConfig2) ResolveEnvironment(environmentOrName string) string

func (*FakeConfig2) Save

func (f *FakeConfig2) Save() error

func (*FakeConfig2) SetCredentials

func (f *FakeConfig2) SetCredentials(environment string, creds config.Creds) config.Config

func (*FakeConfig2) SetDeployment

func (f *FakeConfig2) SetDeployment(environment string, nameOrPath string) config.Config

func (*FakeConfig2) SetEnvironment

func (f *FakeConfig2) SetEnvironment(environment, alias, caCert string) config.Config

func (*FakeConfig2) UnsetCredentials

func (f *FakeConfig2) UnsetCredentials(environment string) config.Config

Jump to

Keyboard shortcuts

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