forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
54 lines (50 loc) · 1.65 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package command
import (
"time"
"code.cloudfoundry.org/cli/util/configv3"
)
//go:generate counterfeiter . Config
// Config a way of getting basic CF configuration
type Config interface {
AccessToken() string
AddPlugin(configv3.Plugin)
AddPluginRepository(name string, url string)
APIVersion() string
BinaryName() string
BinaryVersion() string
ColorEnabled() configv3.ColorSetting
CurrentUser() (configv3.User, error)
DialTimeout() time.Duration
Experimental() bool
GetPlugin(pluginName string) (configv3.Plugin, bool)
GetPluginCaseInsensitive(pluginName string) (configv3.Plugin, bool)
HasTargetedOrganization() bool
HasTargetedSpace() bool
Locale() string
MinCLIVersion() string
OverallPollingTimeout() time.Duration
PluginHome() string
PluginRepositories() []configv3.PluginRepository
Plugins() []configv3.Plugin
PollingInterval() time.Duration
RefreshToken() string
RemovePlugin(string)
SetAccessToken(token string)
SetOrganizationInformation(guid string, name string)
SetRefreshToken(token string)
SetSpaceInformation(guid string, name string, allowSSH bool)
SetTargetInformation(api string, apiVersion string, auth string, minCLIVersion string, doppler string, uaa string, routing string, skipSSLValidation bool)
SetTokenInformation(accessToken string, refreshToken string, sshOAuthClient string)
SkipSSLValidation() bool
StagingTimeout() time.Duration
StartupTimeout() time.Duration
Target() string
TargetedOrganization() configv3.Organization
TargetedSpace() configv3.Space
UAAOAuthClient() string
UAAOAuthClientSecret() string
UnsetOrganizationInformation()
UnsetSpaceInformation()
Verbose() (bool, []string)
WritePluginConfig() error
}