forked from cloudfoundry/cli
/
config.go
33 lines (29 loc) · 891 Bytes
/
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
package v7action
import (
"time"
"code.cloudfoundry.org/cli/util/configv3"
)
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . Config
type Config interface {
AccessToken() string
APIVersion() string
CurrentUser() (configv3.User, error)
DialTimeout() time.Duration
PollingInterval() time.Duration
RefreshToken() string
SSHOAuthClient() string
SetAccessToken(token string)
SetRefreshToken(token string)
SetTargetInformation(args configv3.TargetInformationArgs)
SetTokenInformation(accessToken string, refreshToken string, token string)
SetUAAClientCredentials(client string, clientSecret string)
SetUAAGrantType(grantType string)
SkipSSLValidation() bool
StagingTimeout() time.Duration
StartupTimeout() time.Duration
Target() string
UAAGrantType() string
UnsetOrganizationAndSpaceInformation()
SetKubernetesAuthInfo(authInfo string)
IsCFOnK8s() bool
}