mocks

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 9 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) 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 no fields

func (*Client) CreateAccessToken

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

CreateAccessToken provides a mock function with no fields

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

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

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

func (*Client) DeleteEabCredential

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

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

func (*Client) DeleteTrust

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

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

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

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

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

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

GetTfProviders provides a mock function with no fields

func (*Client) GrabAccessToken

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

GrabAccessToken provides a mock function with no fields

func (*Client) ImpersonateServiceAccount

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

ImpersonateServiceAccount provides a mock function with given fields: email

func (*Client) ListKeyBackups

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

ListKeyBackups provides a mock function with no fields

func (*Client) ListKeys

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

ListKeys provides a mock function with given fields: emails

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

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

Me provides a mock function with no 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) 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

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

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

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

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

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

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

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 no fields

func (*Kube) GetRestClient

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

GetRestClient provides a mock function with no 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 no 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

Jump to

Keyboard shortcuts

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