Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContextTypeCloud ContextType = "cloud" ContextTypeKubeconfig ContextType = "kubeconfig" TokenTypeOIDC = "oidc" TokenTypeAPI = "api" )
View Source
const ( APIServerName string = "testkube-api-server" APIServerPort int = 8088 DashboardName string = "testkube-dashboard" DashboardPort int = 8080 )
Variables ¶
View Source
var DefaultConfig = Data{ TelemetryEnabled: true, Namespace: "testkube", APIURI: "http://localhost:8088", APIServerName: APIServerName, APIServerPort: APIServerPort, DashboardName: DashboardName, DashboardPort: DashboardPort, OAuth2Data: OAuth2Data{ Provider: oauth.GithubProviderType, }, }
Functions ¶
Types ¶
type CloudContext ¶ added in v1.7.30
type CloudContext struct { EnvironmentId string `json:"environment,omitempty"` EnvironmentName string `json:"environmentName,omitempty"` OrganizationId string `json:"organization,omitempty"` OrganizationName string `json:"organizationName,omitempty"` ApiKey string `json:"apiKey,omitempty"` RefreshToken string `json:"refreshToken,omitempty"` ApiUri string `json:"apiUri,omitempty"` AgentKey string `json:"agentKey,omitempty"` AgentUri string `json:"agentUri,omitempty"` RootDomain string `json:"rootDomain,omitempty"` UiUri string `json:"uiUri,omitempty"` TokenType string `json:"tokenType,omitempty"` }
type ContextType ¶ added in v1.8.6
type ContextType string
type Data ¶
type Data struct { TelemetryEnabled bool `json:"telemetryEnabled,omitempty"` Namespace string `json:"namespace,omitempty"` Initialized bool `json:"initialized,omitempty"` APIURI string `json:"apiURI,omitempty"` APIServerName string `json:"apiServerName,omitempty"` APIServerPort int `json:"apiServerPort,omitempty"` DashboardName string `json:"dashboardName,omitempty"` DashboardPort int `json:"dashboardPort,omitempty"` OAuth2Data OAuth2Data `json:"oauth2Data"` ContextType ContextType `json:"contextType,omitempty"` CloudContext CloudContext `json:"cloudContext,omitempty"` }
func (*Data) DisableAnalytics ¶
func (c *Data) DisableAnalytics()
func (*Data) DisableOauth ¶ added in v1.1.16
func (c *Data) DisableOauth()
DisableOauth is oauth disable method
func (*Data) EnableAnalytics ¶
func (c *Data) EnableAnalytics()
func (*Data) EnableOAuth ¶ added in v1.1.16
func (c *Data) EnableOAuth()
EnableOAuth is oauth enable method
func (*Data) SetInitialized ¶ added in v1.0.16
func (c *Data) SetInitialized()
func (*Data) SetNamespace ¶ added in v0.10.5
type OAuth2Data ¶ added in v1.1.16
type OAuth2Data struct { Enabled bool `json:"enabled,omitempty"` Token *oauth2.Token `json:"token,omitempty"` ClientID string `json:"clientID,omitempty"` ClientSecret string `json:"clientSecret,omitempty"` Provider oauth.ProviderType `json:"providerType,omitempty"` Scopes []string `json:"scopes"` }
OAuth2Data contains oauth credentials
Click to show internal directories.
Click to hide internal directories.