-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
43 lines (39 loc) · 1.28 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
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 {
APIVersion() string
AccessToken() string
BinaryName() string
BinaryVersion() string
ColorEnabled() configv3.ColorSetting
CurrentUser() (configv3.User, error)
DialTimeout() time.Duration
Experimental() bool
HasTargetedOrganization() bool
HasTargetedSpace() bool
Locale() string
MinCLIVersion() string
OverallPollingTimeout() time.Duration
Plugins() map[string]configv3.Plugin
PollingInterval() time.Duration
RefreshToken() 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, loggregator string, minCLIVersion string, doppler string, uaa string, routing string, skipSSLValidation bool)
SetTokenInformation(accessToken string, refreshToken string, sshOAuthClient string)
SkipSSLValidation() bool
Target() string
TargetedOrganization() configv3.Organization
TargetedSpace() configv3.Space
UAAOAuthClient() string
UAAOAuthClientSecret() string
UnsetSpaceInformation()
Verbose() (bool, []string)
}