fakes

package
v0.0.100 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 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 {
	EnvironmentsStub func() []config.Environment

	ResolveEnvironmentStub func(urlOrAlias string) string

	AliasEnvironmentStub func(url, alias, caCert string) (config.Config, error)

	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

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

func (*FakeConfig) AliasEnvironment added in v0.0.96

func (fake *FakeConfig) AliasEnvironment(url string, alias string, caCert string) (config.Config, error)

func (*FakeConfig) AliasEnvironmentArgsForCall added in v0.0.96

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

func (*FakeConfig) AliasEnvironmentCallCount added in v0.0.96

func (fake *FakeConfig) AliasEnvironmentCallCount() int

func (*FakeConfig) AliasEnvironmentReturns added in v0.0.96

func (fake *FakeConfig) AliasEnvironmentReturns(result1 config.Config, result2 error)

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) 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) 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

	AliasEnvironmentErr error

	Saved   *ConfigContents
	SaveErr error
}

func (*FakeConfig2) AliasEnvironment added in v0.0.96

func (f *FakeConfig2) AliasEnvironment(environment, alias, caCert string) (config.Config, 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) 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