mocks

package
v0.9.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

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) AcquireLock

func (_m *Client) AcquireLock(repo string) (*api.ApplyLock, error)

AcquireLock provides a mock function with given fields: repo

func (*Client) Chat

func (_m *Client) Chat(history []*api.ChatMessage) (*api.ChatMessage, error)

Chat provides a mock function with given fields: history

func (*Client) Cluster

func (_m *Client) Cluster(id string) (*api.Cluster, error)

Cluster provides a mock function with given fields: id

func (*Client) Clusters

func (_m *Client) Clusters() ([]*api.Cluster, error)

Clusters provides a mock function with given fields:

func (*Client) CreateAccessToken

func (_m *Client) CreateAccessToken() (string, error)

CreateAccessToken provides a mock function with given fields:

func (*Client) CreateArtifact

func (_m *Client) CreateArtifact(repo string, attrs api.ArtifactAttributes) (api.Artifact, error)

CreateArtifact provides a mock function with given fields: repo, attrs

func (*Client) CreateCrd

func (_m *Client) CreateCrd(repo string, chart string, file string) error

CreateCrd provides a mock function with given fields: repo, chart, file

func (*Client) CreateDependency

func (_m *Client) CreateDependency(source string, dest string) error

CreateDependency provides a mock function with given fields: source, dest

func (*Client) CreateDomain

func (_m *Client) CreateDomain(name string) error

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

func (_m *Client) CreateInstallation(id string) (string, error)

CreateInstallation provides a mock function with given fields: id

func (*Client) CreateKey

func (_m *Client) CreateKey(name string, content string) error

CreateKey provides a mock function with given fields: name, content

func (*Client) CreateKeyBackup

func (_m *Client) CreateKeyBackup(attrs api.KeyBackupAttributes) error

CreateKeyBackup provides a mock function with given fields: attrs

func (*Client) CreateRecipe

func (_m *Client) CreateRecipe(repoName string, attrs gqlclient.RecipeAttributes) (string, error)

CreateRecipe provides a mock function with given fields: repoName, attrs

func (*Client) CreateRepository

func (_m *Client) CreateRepository(name string, publisher string, input *gqlclient.RepositoryAttributes) error

CreateRepository provides a mock function with given fields: name, publisher, input

func (*Client) CreateStack

func (_m *Client) CreateStack(attributes gqlclient.StackAttributes) (string, error)

CreateStack provides a mock function with given fields: attributes

func (*Client) CreateTrust

func (_m *Client) CreateTrust(issuer string, trust string) error

CreateTrust provides a mock function with given fields: issuer, trust

func (*Client) CreateUpgrade

func (_m *Client) CreateUpgrade(queue string, repository string, attrs gqlclient.UpgradeAttributes) error

CreateUpgrade provides a mock function with given fields: queue, repository, attrs

func (*Client) DeleteEabCredential

func (_m *Client) DeleteEabCredential(cluster string, provider string) error

DeleteEabCredential provides a mock function with given fields: cluster, provider

func (*Client) DeleteInstallation

func (_m *Client) DeleteInstallation(id string) error

DeleteInstallation provides a mock function with given fields: id

func (*Client) DeleteShell

func (_m *Client) DeleteShell() error

DeleteShell provides a mock function with given fields:

func (*Client) DeleteTrust

func (_m *Client) DeleteTrust(id string) error

DeleteTrust provides a mock function with given fields: id

func (*Client) DestroyCluster

func (_m *Client) DestroyCluster(domain string, name string, provider string) error

DestroyCluster provides a mock function with given fields: domain, name, provider

func (*Client) DeviceLogin

func (_m *Client) DeviceLogin() (*api.DeviceLogin, error)

DeviceLogin provides a mock function with given fields:

func (*Client) GetChartInstallations

func (_m *Client) GetChartInstallations(repoId string) ([]*api.ChartInstallation, error)

GetChartInstallations provides a mock function with given fields: repoId

func (*Client) GetCharts

func (_m *Client) GetCharts(repoId string) ([]*api.Chart, error)

GetCharts provides a mock function with given fields: repoId

func (*Client) GetEabCredential

func (_m *Client) GetEabCredential(cluster string, provider string) (*api.EabCredential, error)

GetEabCredential provides a mock function with given fields: cluster, provider

func (*Client) GetHelp

func (_m *Client) GetHelp(prompt string) (string, error)

GetHelp provides a mock function with given fields: prompt

func (*Client) GetInstallation

func (_m *Client) GetInstallation(name string) (*api.Installation, error)

GetInstallation provides a mock function with given fields: name

func (*Client) GetInstallationById

func (_m *Client) GetInstallationById(id string) (*api.Installation, error)

GetInstallationById provides a mock function with given fields: id

func (*Client) GetInstallations

func (_m *Client) GetInstallations() ([]*api.Installation, error)

GetInstallations provides a mock function with given fields:

func (*Client) GetKeyBackup

func (_m *Client) GetKeyBackup(name string) (*api.KeyBackup, error)

GetKeyBackup provides a mock function with given fields: name

func (*Client) GetPackageInstallations

func (_m *Client) GetPackageInstallations(repoId string) ([]*api.ChartInstallation, []*api.TerraformInstallation, error)

GetPackageInstallations provides a mock function with given fields: repoId

func (*Client) GetRecipe

func (_m *Client) GetRecipe(repo string, name string) (*api.Recipe, error)

GetRecipe provides a mock function with given fields: repo, name

func (*Client) GetRecipeByID

func (_m *Client) GetRecipeByID(id string) (*api.Recipe, error)

GetRecipeByID provides a mock function with given fields: id

func (*Client) GetRepository

func (_m *Client) GetRepository(repo string) (*api.Repository, error)

GetRepository provides a mock function with given fields: repo

func (*Client) GetShell

func (_m *Client) GetShell() (api.CloudShell, error)

GetShell provides a mock function with given fields:

func (*Client) GetStack

func (_m *Client) GetStack(name string, provider string) (*api.Stack, error)

GetStack provides a mock function with given fields: name, provider

func (*Client) GetTerraform

func (_m *Client) GetTerraform(repoId string) ([]*api.Terraform, error)

GetTerraform provides a mock function with given fields: repoId

func (*Client) GetTerraformInstallations

func (_m *Client) GetTerraformInstallations(repoId string) ([]*api.TerraformInstallation, error)

GetTerraformInstallations provides a mock function with given fields: repoId

func (*Client) GetTerraformVersions

func (_m *Client) GetTerraformVersions(id string) ([]*api.Version, error)

GetTerraformVersions provides a mock function with given fields: id

func (*Client) GetTfProviderScaffold

func (_m *Client) GetTfProviderScaffold(name string, version string) (string, error)

GetTfProviderScaffold provides a mock function with given fields: name, version

func (*Client) GetTfProviders

func (_m *Client) GetTfProviders() ([]string, error)

GetTfProviders provides a mock function with given fields:

func (*Client) GetVersions

func (_m *Client) GetVersions(chartId string) ([]*api.Version, error)

GetVersions provides a mock function with given fields: chartId

func (*Client) GrabAccessToken

func (_m *Client) GrabAccessToken() (string, error)

GrabAccessToken provides a mock function with given fields:

func (*Client) ImpersonateServiceAccount

func (_m *Client) ImpersonateServiceAccount(email string) (string, string, error)

ImpersonateServiceAccount provides a mock function with given fields: email

func (*Client) InstallRecipe

func (_m *Client) InstallRecipe(id string) error

InstallRecipe provides a mock function with given fields: id

func (*Client) InstallVersion

func (_m *Client) InstallVersion(tp string, repo string, pkg string, vsn string) error

InstallVersion provides a mock function with given fields: tp, repo, pkg, vsn

func (*Client) ListArtifacts

func (_m *Client) ListArtifacts(repo string) ([]api.Artifact, error)

ListArtifacts provides a mock function with given fields: repo

func (*Client) ListKeyBackups

func (_m *Client) ListKeyBackups() ([]*api.KeyBackup, error)

ListKeyBackups provides a mock function with given fields:

func (*Client) ListKeys

func (_m *Client) ListKeys(emails []string) ([]*api.PublicKey, error)

ListKeys provides a mock function with given fields: emails

func (*Client) ListRecipes

func (_m *Client) ListRecipes(repo string, provider string) ([]*api.Recipe, error)

ListRecipes provides a mock function with given fields: repo, provider

func (*Client) ListRepositories

func (_m *Client) ListRepositories(query string) ([]*api.Repository, error)

ListRepositories provides a mock function with given fields: query

func (*Client) ListStacks

func (_m *Client) ListStacks(featured bool) ([]*api.Stack, error)

ListStacks provides a mock function with given fields: featured

func (*Client) Login

func (_m *Client) Login(email string, pwd string) (string, error)

Login provides a mock function with given fields: email, pwd

func (*Client) LoginMethod

func (_m *Client) LoginMethod(email string) (*api.LoginMethod, error)

LoginMethod provides a mock function with given fields: email

func (*Client) MarkSynced

func (_m *Client) MarkSynced(repo string) error

MarkSynced provides a mock function with given fields: repo

func (*Client) Me

func (_m *Client) Me() (*api.Me, error)

Me provides a mock function with given fields:

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

func (_m *Client) PollLoginToken(token string) (string, error)

PollLoginToken provides a mock function with given fields: token

func (*Client) PromoteCluster

func (_m *Client) PromoteCluster() error

PromoteCluster provides a mock function with given fields:

func (*Client) Release

func (_m *Client) Release(name string, tags []string) error

Release provides a mock function with given fields: name, tags

func (*Client) ReleaseLock

func (_m *Client) ReleaseLock(repo string, lock string) (*api.ApplyLock, error)

ReleaseLock provides a mock function with given fields: repo, lock

func (*Client) ResetInstallations

func (_m *Client) ResetInstallations() (int, error)

ResetInstallations provides a mock function with given fields:

func (*Client) Scaffolds

func (_m *Client) Scaffolds(in *api.ScaffoldInputs) ([]*api.ScaffoldFile, error)

Scaffolds provides a mock function with given fields: in

func (*Client) TransferOwnership

func (_m *Client) TransferOwnership(name string, email string) error

TransferOwnership provides a mock function with given fields: name, email

func (*Client) UninstallChart

func (_m *Client) UninstallChart(id string) error

UninstallChart provides a mock function with given fields: id

func (*Client) UninstallTerraform

func (_m *Client) UninstallTerraform(id string) error

UninstallTerraform provides a mock function with given fields: id

func (*Client) UnlockRepository

func (_m *Client) UnlockRepository(name string) error

UnlockRepository provides a mock function with given fields: name

func (*Client) UpdateVersion

func (_m *Client) UpdateVersion(spec *api.VersionSpec, tags []string) error

UpdateVersion provides a mock function with given fields: spec, tags

func (*Client) UploadTerraform

func (_m *Client) UploadTerraform(dir string, repoName string) (api.Terraform, error)

UploadTerraform provides a mock function with given fields: dir, repoName

type ConsoleClient

type ConsoleClient struct {
	mock.Mock
}

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 gqlclient.ServiceCloneAttributes) (*gqlclient.ServiceDeploymentFragment, error)

CloneService provides a mock function with given fields: clusterId, serviceId, serviceName, clusterName, attributes

func (*ConsoleClient) CreateCluster

func (_m *ConsoleClient) CreateCluster(attributes gqlclient.ClusterAttributes) (*gqlclient.CreateCluster, error)

CreateCluster provides a mock function with given fields: attributes

func (*ConsoleClient) CreateClusterService

func (_m *ConsoleClient) CreateClusterService(clusterId *string, clusterName *string, attr gqlclient.ServiceDeploymentAttributes) (*gqlclient.ServiceDeploymentExtended, error)

CreateClusterService provides a mock function with given fields: clusterId, clusterName, attr

func (*ConsoleClient) CreateNotificationSinks added in v0.8.9

CreateNotificationSinks provides a mock function with given fields: attr

func (*ConsoleClient) CreateProvider

CreateProvider provides a mock function with given fields: attr

func (*ConsoleClient) CreateProviderCredentials

CreateProviderCredentials provides a mock function with given fields: name, attr

func (*ConsoleClient) CreateRepository

func (_m *ConsoleClient) CreateRepository(url string, privateKey *string, passphrase *string, username *string, password *string) (*gqlclient.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) (*gqlclient.DeleteServiceDeployment, error)

DeleteClusterService provides a mock function with given fields: serviceId

func (*ConsoleClient) DeleteProviderCredentials

func (_m *ConsoleClient) DeleteProviderCredentials(id string) (*gqlclient.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 given fields:

func (*ConsoleClient) GetCluster

func (_m *ConsoleClient) GetCluster(clusterId *string, clusterName *string) (*gqlclient.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) (*gqlclient.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() (*gqlclient.DeploymentSettingsFragment, error)

GetGlobalSettings provides a mock function with given fields:

func (*ConsoleClient) GetServiceContext added in v0.8.5

func (_m *ConsoleClient) GetServiceContext(name string) (*gqlclient.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) (*gqlclient.ServiceDeploymentExtended, error)

KickClusterService provides a mock function with given fields: serviceId, serviceName, clusterName

func (*ConsoleClient) ListClusterServices

func (_m *ConsoleClient) ListClusterServices(clusterId *string, handle *string) ([]*gqlclient.ServiceDeploymentEdgeFragment, error)

ListClusterServices provides a mock function with given fields: clusterId, handle

func (*ConsoleClient) ListClusters

func (_m *ConsoleClient) ListClusters() (*gqlclient.ListClusters, error)

ListClusters provides a mock function with given fields:

func (*ConsoleClient) ListNotificationSinks added in v0.8.9

func (_m *ConsoleClient) ListNotificationSinks(after *string, first *int64) (*gqlclient.ListNotificationSinks_NotificationSinks, error)

ListNotificationSinks provides a mock function with given fields: after, first

func (*ConsoleClient) ListProviders

func (_m *ConsoleClient) ListProviders() (*gqlclient.ListProviders, error)

ListProviders provides a mock function with given fields:

func (*ConsoleClient) ListRepositories

func (_m *ConsoleClient) ListRepositories() (*gqlclient.ListGitRepositories, error)

ListRepositories provides a mock function with given fields:

func (*ConsoleClient) ListStackRuns added in v0.9.8

func (_m *ConsoleClient) ListStackRuns(stackID string) (*gqlclient.ListStackRuns, error)

ListStackRuns provides a mock function with given fields: stackID

func (*ConsoleClient) MyCluster

func (_m *ConsoleClient) MyCluster() (*gqlclient.MyCluster, error)

MyCluster provides a mock function with given fields:

func (*ConsoleClient) SavePipeline

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 gqlclient.ServiceContextAttributes) (*gqlclient.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 given fields:

func (*ConsoleClient) UpdateCluster

UpdateCluster provides a mock function with given fields: id, attr

func (*ConsoleClient) UpdateClusterService

func (_m *ConsoleClient) UpdateClusterService(serviceId *string, serviceName *string, clusterName *string, attributes gqlclient.ServiceUpdateAttributes) (*gqlclient.ServiceDeploymentExtended, error)

UpdateClusterService provides a mock function with given fields: serviceId, serviceName, clusterName, attributes

func (*ConsoleClient) UpdateDeploymentSettings added in v0.9.0

UpdateDeploymentSettings provides a mock function with given fields: attr

func (*ConsoleClient) UpdateRepository

func (_m *ConsoleClient) UpdateRepository(id string, attrs gqlclient.GitAttributes) (*gqlclient.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 given fields:

type Kube

type Kube struct {
	mock.Mock
}

Kube is an autogenerated mock type for the Kube type

func NewKube

func NewKube(t interface {
	mock.TestingT
	Cleanup(func())
}) *Kube

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) Apply

func (_m *Kube) Apply(path string, force bool) error

Apply provides a mock function with given fields: path, force

func (*Kube) CreateNamespace

func (_m *Kube) CreateNamespace(namespace string, managedByPlural bool) error

CreateNamespace provides a mock function with given fields: namespace, managedByPlural

func (*Kube) FinalizeNamespace

func (_m *Kube) FinalizeNamespace(namespace string) error

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 given fields:

func (*Kube) GetRestClient

func (_m *Kube) GetRestClient() *rest.RESTClient

GetRestClient provides a mock function with given fields:

func (*Kube) LogTail

func (_m *Kube) LogTail(namespace string, name string) (*v1alpha1.LogTail, error)

LogTail provides a mock function with given fields: namespace, name

func (*Kube) LogTailList

func (_m *Kube) LogTailList(namespace string) (*v1alpha1.LogTailList, error)

LogTailList provides a mock function with given fields: namespace

func (*Kube) Node

func (_m *Kube) Node(name string) (*v1.Node, error)

Node provides a mock function with given fields: name

func (*Kube) Nodes

func (_m *Kube) Nodes() (*v1.NodeList, error)

Nodes provides a mock function with given fields:

func (*Kube) Proxy

func (_m *Kube) Proxy(namespace string, name string) (*v1alpha1.Proxy, error)

Proxy provides a mock function with given fields: namespace, name

func (*Kube) ProxyList

func (_m *Kube) ProxyList(namespace string) (*v1alpha1.ProxyList, error)

ProxyList provides a mock function with given fields: namespace

func (*Kube) Secret

func (_m *Kube) Secret(namespace string, name string) (*v1.Secret, error)

Secret provides a mock function with given fields: namespace, name

func (*Kube) SecretCreate

func (_m *Kube) SecretCreate(namespace string, secret *v1.Secret) (*v1.Secret, error)

SecretCreate provides a mock function with given fields: namespace, secret

func (*Kube) SecretDelete

func (_m *Kube) SecretDelete(namespace string, secretName string) error

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

func (*Kube) WireguardPeer

func (_m *Kube) WireguardPeer(namespace string, name string) (*vpnv1alpha1.WireguardPeer, error)

WireguardPeer provides a mock function with given fields: namespace, name

func (*Kube) WireguardPeerCreate

func (_m *Kube) WireguardPeerCreate(namespace string, wireguardPeer *vpnv1alpha1.WireguardPeer) (*vpnv1alpha1.WireguardPeer, error)

WireguardPeerCreate provides a mock function with given fields: namespace, wireguardPeer

func (*Kube) WireguardPeerDelete

func (_m *Kube) WireguardPeerDelete(namespace string, name string) error

WireguardPeerDelete provides a mock function with given fields: namespace, name

func (*Kube) WireguardPeerList

func (_m *Kube) WireguardPeerList(namespace string) (*vpnv1alpha1.WireguardPeerList, error)

WireguardPeerList provides a mock function with given fields: namespace

func (*Kube) WireguardServer

func (_m *Kube) WireguardServer(namespace string, name string) (*vpnv1alpha1.WireguardServer, error)

WireguardServer provides a mock function with given fields: namespace, name

func (*Kube) WireguardServerList

func (_m *Kube) WireguardServerList(namespace string) (*vpnv1alpha1.WireguardServerList, error)

WireguardServerList provides a mock function with given fields: namespace

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL