Documentation ¶
Index ¶
- type Client
- func (_m *Client) Chat(history []*api.ChatMessage) (*api.ChatMessage, error)
- func (_m *Client) Cluster(id string) (*api.Cluster, error)
- func (_m *Client) Clusters() ([]*api.Cluster, error)
- func (_m *Client) CreateAccessToken() (string, error)
- func (_m *Client) CreateDomain(name string) error
- func (_m *Client) CreateEvent(event *api.UserEventAttributes) error
- func (_m *Client) CreateInstallation(id string) (string, error)
- func (_m *Client) CreateKey(name string, content string) error
- func (_m *Client) CreateKeyBackup(attrs api.KeyBackupAttributes) error
- func (_m *Client) CreateTrust(issuer string, trust string) error
- func (_m *Client) DeleteEabCredential(cluster string, provider string) error
- func (_m *Client) DeleteTrust(id string) error
- func (_m *Client) DeviceLogin() (*api.DeviceLogin, error)
- func (_m *Client) GetConsoleInstances() ([]*gqlclient.ConsoleInstanceFragment, error)
- func (_m *Client) GetEabCredential(cluster string, provider string) (*api.EabCredential, error)
- func (_m *Client) GetHelp(prompt string) (string, error)
- func (_m *Client) GetInstallation(name string) (*api.Installation, error)
- func (_m *Client) GetKeyBackup(name string) (*api.KeyBackup, error)
- func (_m *Client) GetRepository(repo string) (*api.Repository, error)
- func (_m *Client) GetTfProviders() ([]string, error)
- func (_m *Client) GrabAccessToken() (string, error)
- func (_m *Client) ImpersonateServiceAccount(email string) (string, string, error)
- func (_m *Client) ListKeyBackups() ([]*api.KeyBackup, error)
- func (_m *Client) ListKeys(emails []string) ([]*api.PublicKey, error)
- func (_m *Client) Login(email string, pwd string) (string, error)
- func (_m *Client) LoginMethod(email string) (*api.LoginMethod, error)
- func (_m *Client) Me() (*api.Me, error)
- func (_m *Client) OIDCProvider(id string, attributes *api.OidcProviderAttributes) error
- func (_m *Client) OidcToken(provider gqlclient.ExternalOidcProvider, token string, email string) (string, error)
- func (_m *Client) PollLoginToken(token string) (string, error)
- func (_m *Client) UpdateConsoleInstance(id string, attrs gqlclient.ConsoleInstanceUpdateAttributes) error
- func (_m *Client) UpdateVersion(spec *api.VersionSpec, tags []string) error
- type ConsoleClient
- func (_m *ConsoleClient) AgentUrl(id string) (string, error)
- func (_m *ConsoleClient) CloneService(clusterId string, serviceId *string, serviceName *string, clusterName *string, ...) (*client.ServiceDeploymentFragment, error)
- func (_m *ConsoleClient) CreateCluster(attributes client.ClusterAttributes) (*client.CreateCluster, error)
- func (_m *ConsoleClient) CreateClusterService(clusterId *string, clusterName *string, ...) (*client.ServiceDeploymentExtended, error)
- func (_m *ConsoleClient) CreateNotificationSinks(attr client.NotificationSinkAttributes) (*client.NotificationSinkFragment, error)
- func (_m *ConsoleClient) CreatePipelineContext(id string, attrs client.PipelineContextAttributes) (*client.PipelineContextFragment, error)
- func (_m *ConsoleClient) CreateProvider(attr client.ClusterProviderAttributes) (*client.CreateClusterProvider, error)
- func (_m *ConsoleClient) CreateProviderCredentials(name string, attr client.ProviderCredentialAttributes) (*client.CreateProviderCredential, error)
- func (_m *ConsoleClient) CreatePullRequest(id string, branch *string, context *string) (*client.PullRequestFragment, error)
- func (_m *ConsoleClient) CreateRepository(url string, privateKey *string, passphrase *string, username *string, ...) (*client.CreateGitRepository, error)
- func (_m *ConsoleClient) DeleteCluster(id string) error
- func (_m *ConsoleClient) DeleteClusterService(serviceId string) (*client.DeleteServiceDeployment, error)
- func (_m *ConsoleClient) DeleteProviderCredentials(id string) (*client.DeleteProviderCredential, error)
- func (_m *ConsoleClient) DetachCluster(id string) error
- func (_m *ConsoleClient) ExtUrl() string
- func (_m *ConsoleClient) GetCluster(clusterId *string, clusterName *string) (*client.ClusterFragment, error)
- func (_m *ConsoleClient) GetClusterService(serviceId *string, serviceName *string, clusterName *string) (*client.ServiceDeploymentExtended, error)
- func (_m *ConsoleClient) GetDeployToken(clusterId *string, clusterName *string) (string, error)
- func (_m *ConsoleClient) GetGlobalSettings() (*client.DeploymentSettingsFragment, error)
- func (_m *ConsoleClient) GetPipelineContext(id string) (*client.PipelineContextFragment, error)
- func (_m *ConsoleClient) GetPrAutomationByName(name string) (*client.PrAutomationFragment, error)
- func (_m *ConsoleClient) GetProject(name string) (*client.ProjectFragment, error)
- func (_m *ConsoleClient) GetRepository(id string) (*client.GetGitRepository, error)
- func (_m *ConsoleClient) GetServiceContext(name string) (*client.ServiceContextFragment, error)
- func (_m *ConsoleClient) KickClusterService(serviceId *string, serviceName *string, clusterName *string) (*client.ServiceDeploymentExtended, error)
- func (_m *ConsoleClient) ListClusterServices(clusterId *string, handle *string) ([]*client.ServiceDeploymentEdgeFragment, error)
- func (_m *ConsoleClient) ListClusters() (*client.ListClusters, error)
- func (_m *ConsoleClient) ListNotificationSinks(after *string, first *int64) (*client.ListNotificationSinks_NotificationSinks, error)
- func (_m *ConsoleClient) ListProviders() (*client.ListProviders, error)
- func (_m *ConsoleClient) ListRepositories() (*client.ListGitRepositories, error)
- func (_m *ConsoleClient) ListStackRuns(stackID string) (*client.ListStackRuns, error)
- func (_m *ConsoleClient) MyCluster() (*client.MyCluster, error)
- func (_m *ConsoleClient) SavePipeline(name string, attrs client.PipelineAttributes) (*client.PipelineFragmentMinimal, error)
- func (_m *ConsoleClient) SaveServiceContext(name string, attributes client.ServiceContextAttributes) (*client.ServiceContextFragment, error)
- func (_m *ConsoleClient) Token() string
- func (_m *ConsoleClient) UpdateCluster(id string, attr client.ClusterUpdateAttributes) (*client.UpdateCluster, error)
- func (_m *ConsoleClient) UpdateClusterService(serviceId *string, serviceName *string, clusterName *string, ...) (*client.ServiceDeploymentExtended, error)
- func (_m *ConsoleClient) UpdateDeploymentSettings(attr client.DeploymentSettingsAttributes) (*client.UpdateDeploymentSettings, error)
- func (_m *ConsoleClient) UpdateRepository(id string, attrs client.GitAttributes) (*client.UpdateGitRepository, error)
- func (_m *ConsoleClient) Url() string
- type Kube
- func (_m *Kube) Apply(path string, force bool) error
- func (_m *Kube) CreateNamespace(namespace string, managedByPlural bool) error
- func (_m *Kube) FinalizeNamespace(namespace string) error
- func (_m *Kube) GetClient() *client_gokubernetes.Clientset
- func (_m *Kube) GetRestClient() *rest.RESTClient
- func (_m *Kube) LogTail(namespace string, name string) (*v1alpha1.LogTail, error)
- func (_m *Kube) LogTailList(namespace string) (*v1alpha1.LogTailList, error)
- func (_m *Kube) Node(name string) (*v1.Node, error)
- func (_m *Kube) Nodes() (*v1.NodeList, error)
- func (_m *Kube) Proxy(namespace string, name string) (*v1alpha1.Proxy, error)
- func (_m *Kube) ProxyList(namespace string) (*v1alpha1.ProxyList, error)
- func (_m *Kube) Secret(namespace string, name string) (*v1.Secret, error)
- func (_m *Kube) SecretCreate(namespace string, secret *v1.Secret) (*v1.Secret, error)
- func (_m *Kube) SecretDelete(namespace string, secretName string) error
- func (_m *Kube) SecretDeleteCollection(namespace string, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (_m *Kube) SecretList(namespace string, opts metav1.ListOptions) (*v1.SecretList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Client) Chat ¶
func (_m *Client) Chat(history []*api.ChatMessage) (*api.ChatMessage, error)
Chat provides a mock function with given fields: history
func (*Client) CreateAccessToken ¶
CreateAccessToken provides a mock function with no fields
func (*Client) CreateDomain ¶
CreateDomain provides a mock function with given fields: name
func (*Client) CreateEvent ¶
func (_m *Client) CreateEvent(event *api.UserEventAttributes) error
CreateEvent provides a mock function with given fields: event
func (*Client) CreateInstallation ¶
CreateInstallation provides a mock function with given fields: id
func (*Client) CreateKeyBackup ¶
func (_m *Client) CreateKeyBackup(attrs api.KeyBackupAttributes) error
CreateKeyBackup provides a mock function with given fields: attrs
func (*Client) CreateTrust ¶
CreateTrust provides a mock function with given fields: issuer, trust
func (*Client) DeleteEabCredential ¶
DeleteEabCredential provides a mock function with given fields: cluster, provider
func (*Client) DeleteTrust ¶
DeleteTrust provides a mock function with given fields: id
func (*Client) DeviceLogin ¶
func (_m *Client) DeviceLogin() (*api.DeviceLogin, error)
DeviceLogin provides a mock function with no fields
func (*Client) GetConsoleInstances ¶ added in v0.9.14
func (_m *Client) GetConsoleInstances() ([]*gqlclient.ConsoleInstanceFragment, error)
GetConsoleInstances provides a mock function with no fields
func (*Client) GetEabCredential ¶
GetEabCredential provides a mock function with given fields: cluster, provider
func (*Client) GetInstallation ¶
func (_m *Client) GetInstallation(name string) (*api.Installation, error)
GetInstallation provides a mock function with given fields: name
func (*Client) GetKeyBackup ¶
GetKeyBackup provides a mock function with given fields: name
func (*Client) GetRepository ¶
func (_m *Client) GetRepository(repo string) (*api.Repository, error)
GetRepository provides a mock function with given fields: repo
func (*Client) GetTfProviders ¶
GetTfProviders provides a mock function with no fields
func (*Client) GrabAccessToken ¶
GrabAccessToken provides a mock function with no fields
func (*Client) ImpersonateServiceAccount ¶
ImpersonateServiceAccount provides a mock function with given fields: email
func (*Client) ListKeyBackups ¶
ListKeyBackups provides a mock function with no fields
func (*Client) LoginMethod ¶
func (_m *Client) LoginMethod(email string) (*api.LoginMethod, error)
LoginMethod provides a mock function with given fields: email
func (*Client) OIDCProvider ¶
func (_m *Client) OIDCProvider(id string, attributes *api.OidcProviderAttributes) error
OIDCProvider provides a mock function with given fields: id, attributes
func (*Client) OidcToken ¶
func (_m *Client) OidcToken(provider gqlclient.ExternalOidcProvider, token string, email string) (string, error)
OidcToken provides a mock function with given fields: provider, token, email
func (*Client) PollLoginToken ¶
PollLoginToken provides a mock function with given fields: token
func (*Client) UpdateConsoleInstance ¶ added in v0.9.14
func (_m *Client) UpdateConsoleInstance(id string, attrs gqlclient.ConsoleInstanceUpdateAttributes) error
UpdateConsoleInstance provides a mock function with given fields: id, attrs
func (*Client) UpdateVersion ¶
func (_m *Client) UpdateVersion(spec *api.VersionSpec, tags []string) error
UpdateVersion provides a mock function with given fields: spec, tags
type ConsoleClient ¶
ConsoleClient is an autogenerated mock type for the ConsoleClient type
func NewConsoleClient ¶
func NewConsoleClient(t interface { mock.TestingT Cleanup(func()) }) *ConsoleClient
NewConsoleClient creates a new instance of ConsoleClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ConsoleClient) AgentUrl ¶ added in v0.9.10
func (_m *ConsoleClient) AgentUrl(id string) (string, error)
AgentUrl provides a mock function with given fields: id
func (*ConsoleClient) CloneService ¶
func (_m *ConsoleClient) CloneService(clusterId string, serviceId *string, serviceName *string, clusterName *string, attributes client.ServiceCloneAttributes) (*client.ServiceDeploymentFragment, error)
CloneService provides a mock function with given fields: clusterId, serviceId, serviceName, clusterName, attributes
func (*ConsoleClient) CreateCluster ¶
func (_m *ConsoleClient) CreateCluster(attributes client.ClusterAttributes) (*client.CreateCluster, error)
CreateCluster provides a mock function with given fields: attributes
func (*ConsoleClient) CreateClusterService ¶
func (_m *ConsoleClient) CreateClusterService(clusterId *string, clusterName *string, attr client.ServiceDeploymentAttributes) (*client.ServiceDeploymentExtended, error)
CreateClusterService provides a mock function with given fields: clusterId, clusterName, attr
func (*ConsoleClient) CreateNotificationSinks ¶ added in v0.8.9
func (_m *ConsoleClient) CreateNotificationSinks(attr client.NotificationSinkAttributes) (*client.NotificationSinkFragment, error)
CreateNotificationSinks provides a mock function with given fields: attr
func (*ConsoleClient) CreatePipelineContext ¶ added in v0.9.15
func (_m *ConsoleClient) CreatePipelineContext(id string, attrs client.PipelineContextAttributes) (*client.PipelineContextFragment, error)
CreatePipelineContext provides a mock function with given fields: id, attrs
func (*ConsoleClient) CreateProvider ¶
func (_m *ConsoleClient) CreateProvider(attr client.ClusterProviderAttributes) (*client.CreateClusterProvider, error)
CreateProvider provides a mock function with given fields: attr
func (*ConsoleClient) CreateProviderCredentials ¶
func (_m *ConsoleClient) CreateProviderCredentials(name string, attr client.ProviderCredentialAttributes) (*client.CreateProviderCredential, error)
CreateProviderCredentials provides a mock function with given fields: name, attr
func (*ConsoleClient) CreatePullRequest ¶ added in v0.9.14
func (_m *ConsoleClient) CreatePullRequest(id string, branch *string, context *string) (*client.PullRequestFragment, error)
CreatePullRequest provides a mock function with given fields: id, branch, context
func (*ConsoleClient) CreateRepository ¶
func (_m *ConsoleClient) CreateRepository(url string, privateKey *string, passphrase *string, username *string, password *string) (*client.CreateGitRepository, error)
CreateRepository provides a mock function with given fields: url, privateKey, passphrase, username, password
func (*ConsoleClient) DeleteCluster ¶
func (_m *ConsoleClient) DeleteCluster(id string) error
DeleteCluster provides a mock function with given fields: id
func (*ConsoleClient) DeleteClusterService ¶
func (_m *ConsoleClient) DeleteClusterService(serviceId string) (*client.DeleteServiceDeployment, error)
DeleteClusterService provides a mock function with given fields: serviceId
func (*ConsoleClient) DeleteProviderCredentials ¶
func (_m *ConsoleClient) DeleteProviderCredentials(id string) (*client.DeleteProviderCredential, error)
DeleteProviderCredentials provides a mock function with given fields: id
func (*ConsoleClient) DetachCluster ¶ added in v0.8.5
func (_m *ConsoleClient) DetachCluster(id string) error
DetachCluster provides a mock function with given fields: id
func (*ConsoleClient) ExtUrl ¶ added in v0.9.10
func (_m *ConsoleClient) ExtUrl() string
ExtUrl provides a mock function with no fields
func (*ConsoleClient) GetCluster ¶
func (_m *ConsoleClient) GetCluster(clusterId *string, clusterName *string) (*client.ClusterFragment, error)
GetCluster provides a mock function with given fields: clusterId, clusterName
func (*ConsoleClient) GetClusterService ¶
func (_m *ConsoleClient) GetClusterService(serviceId *string, serviceName *string, clusterName *string) (*client.ServiceDeploymentExtended, error)
GetClusterService provides a mock function with given fields: serviceId, serviceName, clusterName
func (*ConsoleClient) GetDeployToken ¶ added in v0.8.5
func (_m *ConsoleClient) GetDeployToken(clusterId *string, clusterName *string) (string, error)
GetDeployToken provides a mock function with given fields: clusterId, clusterName
func (*ConsoleClient) GetGlobalSettings ¶ added in v0.9.2
func (_m *ConsoleClient) GetGlobalSettings() (*client.DeploymentSettingsFragment, error)
GetGlobalSettings provides a mock function with no fields
func (*ConsoleClient) GetPipelineContext ¶ added in v0.9.15
func (_m *ConsoleClient) GetPipelineContext(id string) (*client.PipelineContextFragment, error)
GetPipelineContext provides a mock function with given fields: id
func (*ConsoleClient) GetPrAutomationByName ¶ added in v0.9.14
func (_m *ConsoleClient) GetPrAutomationByName(name string) (*client.PrAutomationFragment, error)
GetPrAutomationByName provides a mock function with given fields: name
func (*ConsoleClient) GetProject ¶ added in v0.9.13
func (_m *ConsoleClient) GetProject(name string) (*client.ProjectFragment, error)
GetProject provides a mock function with given fields: name
func (*ConsoleClient) GetRepository ¶ added in v0.11.0
func (_m *ConsoleClient) GetRepository(id string) (*client.GetGitRepository, error)
GetRepository provides a mock function with given fields: id
func (*ConsoleClient) GetServiceContext ¶ added in v0.8.5
func (_m *ConsoleClient) GetServiceContext(name string) (*client.ServiceContextFragment, error)
GetServiceContext provides a mock function with given fields: name
func (*ConsoleClient) KickClusterService ¶ added in v0.8.5
func (_m *ConsoleClient) KickClusterService(serviceId *string, serviceName *string, clusterName *string) (*client.ServiceDeploymentExtended, error)
KickClusterService provides a mock function with given fields: serviceId, serviceName, clusterName
func (*ConsoleClient) ListClusterServices ¶
func (_m *ConsoleClient) ListClusterServices(clusterId *string, handle *string) ([]*client.ServiceDeploymentEdgeFragment, error)
ListClusterServices provides a mock function with given fields: clusterId, handle
func (*ConsoleClient) ListClusters ¶
func (_m *ConsoleClient) ListClusters() (*client.ListClusters, error)
ListClusters provides a mock function with no fields
func (*ConsoleClient) ListNotificationSinks ¶ added in v0.8.9
func (_m *ConsoleClient) ListNotificationSinks(after *string, first *int64) (*client.ListNotificationSinks_NotificationSinks, error)
ListNotificationSinks provides a mock function with given fields: after, first
func (*ConsoleClient) ListProviders ¶
func (_m *ConsoleClient) ListProviders() (*client.ListProviders, error)
ListProviders provides a mock function with no fields
func (*ConsoleClient) ListRepositories ¶
func (_m *ConsoleClient) ListRepositories() (*client.ListGitRepositories, error)
ListRepositories provides a mock function with no fields
func (*ConsoleClient) ListStackRuns ¶ added in v0.9.8
func (_m *ConsoleClient) ListStackRuns(stackID string) (*client.ListStackRuns, error)
ListStackRuns provides a mock function with given fields: stackID
func (*ConsoleClient) MyCluster ¶
func (_m *ConsoleClient) MyCluster() (*client.MyCluster, error)
MyCluster provides a mock function with no fields
func (*ConsoleClient) SavePipeline ¶
func (_m *ConsoleClient) SavePipeline(name string, attrs client.PipelineAttributes) (*client.PipelineFragmentMinimal, error)
SavePipeline provides a mock function with given fields: name, attrs
func (*ConsoleClient) SaveServiceContext ¶ added in v0.8.5
func (_m *ConsoleClient) SaveServiceContext(name string, attributes client.ServiceContextAttributes) (*client.ServiceContextFragment, error)
SaveServiceContext provides a mock function with given fields: name, attributes
func (*ConsoleClient) Token ¶
func (_m *ConsoleClient) Token() string
Token provides a mock function with no fields
func (*ConsoleClient) UpdateCluster ¶
func (_m *ConsoleClient) UpdateCluster(id string, attr client.ClusterUpdateAttributes) (*client.UpdateCluster, error)
UpdateCluster provides a mock function with given fields: id, attr
func (*ConsoleClient) UpdateClusterService ¶
func (_m *ConsoleClient) UpdateClusterService(serviceId *string, serviceName *string, clusterName *string, attributes client.ServiceUpdateAttributes) (*client.ServiceDeploymentExtended, error)
UpdateClusterService provides a mock function with given fields: serviceId, serviceName, clusterName, attributes
func (*ConsoleClient) UpdateDeploymentSettings ¶ added in v0.9.0
func (_m *ConsoleClient) UpdateDeploymentSettings(attr client.DeploymentSettingsAttributes) (*client.UpdateDeploymentSettings, error)
UpdateDeploymentSettings provides a mock function with given fields: attr
func (*ConsoleClient) UpdateRepository ¶
func (_m *ConsoleClient) UpdateRepository(id string, attrs client.GitAttributes) (*client.UpdateGitRepository, error)
UpdateRepository provides a mock function with given fields: id, attrs
func (*ConsoleClient) Url ¶
func (_m *ConsoleClient) Url() string
Url provides a mock function with no fields
type Kube ¶
Kube is an autogenerated mock type for the Kube type
func NewKube ¶
NewKube creates a new instance of Kube. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Kube) CreateNamespace ¶
CreateNamespace provides a mock function with given fields: namespace, managedByPlural
func (*Kube) FinalizeNamespace ¶
FinalizeNamespace provides a mock function with given fields: namespace
func (*Kube) GetClient ¶
func (_m *Kube) GetClient() *client_gokubernetes.Clientset
GetClient provides a mock function with no fields
func (*Kube) GetRestClient ¶
func (_m *Kube) GetRestClient() *rest.RESTClient
GetRestClient provides a mock function with no fields
func (*Kube) LogTailList ¶
func (_m *Kube) LogTailList(namespace string) (*v1alpha1.LogTailList, error)
LogTailList provides a mock function with given fields: namespace
func (*Kube) SecretCreate ¶
SecretCreate provides a mock function with given fields: namespace, secret
func (*Kube) SecretDelete ¶
SecretDelete provides a mock function with given fields: namespace, secretName
func (*Kube) SecretDeleteCollection ¶
func (_m *Kube) SecretDeleteCollection(namespace string, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
SecretDeleteCollection provides a mock function with given fields: namespace, opts, listOpts
func (*Kube) SecretList ¶
func (_m *Kube) SecretList(namespace string, opts metav1.ListOptions) (*v1.SecretList, error)
SecretList provides a mock function with given fields: namespace, opts