Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.6.20 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sApplicationService

type K8sApplicationService struct {
	mock.Mock
}

K8sApplicationService is an autogenerated mock type for the K8sApplicationService type

func NewK8sApplicationService

func NewK8sApplicationService(t mockConstructorTestingTNewK8sApplicationService) *K8sApplicationService

NewK8sApplicationService creates a new instance of K8sApplicationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*K8sApplicationService) ApplyResources added in v0.6.13

ApplyResources provides a mock function with given fields: ctx, token, request, resourceRbacHandler

func (*K8sApplicationService) CreateResource

CreateResource provides a mock function with given fields: ctx, request

func (*K8sApplicationService) DecodeDevtronAppId added in v0.6.19

func (_m *K8sApplicationService) DecodeDevtronAppId(applicationId string) (*k8s.DevtronAppIdentifier, error)

DecodeDevtronAppId provides a mock function with given fields: applicationId

func (*K8sApplicationService) DeleteResource

func (_m *K8sApplicationService) DeleteResource(ctx context.Context, request *k8s.ResourceRequestBean, userId int32) (*application.ManifestResponse, error)

DeleteResource provides a mock function with given fields: ctx, request, userId

func (*K8sApplicationService) FetchConnectionStatusForCluster added in v0.6.19

func (_m *K8sApplicationService) FetchConnectionStatusForCluster(k8sClientSet *kubernetes.Clientset, clusterId int) error

FetchConnectionStatusForCluster provides a mock function with given fields: k8sClientSet, clusterId

func (*K8sApplicationService) FilterServiceAndIngress

func (_m *K8sApplicationService) FilterServiceAndIngress(ctx context.Context, resourceTreeInf map[string]interface{}, validRequests []k8s.ResourceRequestBean, appDetail bean.AppDetailContainer, appId string) []k8s.ResourceRequestBean

FilterServiceAndIngress provides a mock function with given fields: ctx, resourceTreeInf, validRequests, appDetail, appId

func (*K8sApplicationService) GetAllApiResources added in v0.6.13

func (_m *K8sApplicationService) GetAllApiResources(ctx context.Context, clusterId int, isSuperAdmin bool, userId int32) (*application.GetAllApiResourcesResponse, error)

GetAllApiResources provides a mock function with given fields: ctx, clusterId, isSuperAdmin, userId

func (*K8sApplicationService) GetManifestsByBatch

func (_m *K8sApplicationService) GetManifestsByBatch(ctx context.Context, request []k8s.ResourceRequestBean) ([]k8s.BatchResourceResponse, error)

GetManifestsByBatch provides a mock function with given fields: ctx, request

func (*K8sApplicationService) GetPodLogs

GetPodLogs provides a mock function with given fields: ctx, request

func (*K8sApplicationService) GetResource

GetResource provides a mock function with given fields: ctx, request

func (*K8sApplicationService) GetResourceInfo

func (_m *K8sApplicationService) GetResourceInfo(ctx context.Context) (*k8s.ResourceInfo, error)

GetResourceInfo provides a mock function with given fields: ctx

func (*K8sApplicationService) GetResourceList added in v0.6.13

func (_m *K8sApplicationService) GetResourceList(ctx context.Context, token string, request *k8s.ResourceRequestBean, validateResourceAccess func(string, string, k8s.ResourceRequestBean, string) bool) (*util.ClusterResourceListMap, error)

GetResourceList provides a mock function with given fields: ctx, token, request, validateResourceAccess

func (*K8sApplicationService) GetRestConfigByClusterId

func (_m *K8sApplicationService) GetRestConfigByClusterId(ctx context.Context, clusterId int) (*rest.Config, error)

GetRestConfigByClusterId provides a mock function with given fields: ctx, clusterId

func (*K8sApplicationService) GetUrlsByBatch

func (_m *K8sApplicationService) GetUrlsByBatch(ctx context.Context, resp []k8s.BatchResourceResponse) []interface{}

GetUrlsByBatch provides a mock function with given fields: ctx, resp

func (*K8sApplicationService) ListEvents

ListEvents provides a mock function with given fields: ctx, request

func (*K8sApplicationService) RotatePods added in v0.6.19

RotatePods provides a mock function with given fields: ctx, request

func (*K8sApplicationService) UpdateResource

UpdateResource provides a mock function with given fields: ctx, request

func (*K8sApplicationService) ValidateClusterResourceBean added in v0.6.19

func (_m *K8sApplicationService) ValidateClusterResourceBean(ctx context.Context, clusterId int, manifest unstructured.Unstructured, gvk schema.GroupVersionKind, rbacCallback func(string, application.ResourceIdentifier) bool) bool

ValidateClusterResourceBean provides a mock function with given fields: ctx, clusterId, manifest, gvk, rbacCallback

func (*K8sApplicationService) ValidateClusterResourceRequest added in v0.6.19

func (_m *K8sApplicationService) ValidateClusterResourceRequest(ctx context.Context, clusterResourceRequest *k8s.ResourceRequestBean, rbacCallback func(string, application.ResourceIdentifier) bool) (bool, error)

ValidateClusterResourceRequest provides a mock function with given fields: ctx, clusterResourceRequest, rbacCallback

func (*K8sApplicationService) ValidatePodLogsRequestQuery added in v0.6.19

func (_m *K8sApplicationService) ValidatePodLogsRequestQuery(r *http.Request) (*k8s.ResourceRequestBean, error)

ValidatePodLogsRequestQuery provides a mock function with given fields: r

func (*K8sApplicationService) ValidateResourceRequest

func (_m *K8sApplicationService) ValidateResourceRequest(ctx context.Context, appIdentifier *client.AppIdentifier, request *application.K8sRequestBean) (bool, error)

ValidateResourceRequest provides a mock function with given fields: ctx, appIdentifier, request

func (*K8sApplicationService) ValidateTerminalRequestQuery added in v0.6.19

ValidateTerminalRequestQuery provides a mock function with given fields: r

Jump to

Keyboard shortcuts

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