Documentation ¶
Index ¶
- type K8sApplicationService
- func (_m *K8sApplicationService) ApplyResources(token string, request *application.ApplyResourcesRequest, ...) ([]*application.ApplyResourcesResponse, error)
- func (_m *K8sApplicationService) CreateResource(request *k8s.ResourceRequestBean) (*application.ManifestResponse, error)
- func (_m *K8sApplicationService) DeleteResource(request *k8s.ResourceRequestBean) (*application.ManifestResponse, error)
- func (_m *K8sApplicationService) FilterServiceAndIngress(resourceTreeInf map[string]interface{}, ...) []k8s.ResourceRequestBean
- func (_m *K8sApplicationService) GetAllApiResources(clusterId int, isSuperAdmin bool, userId int32) (*application.GetAllApiResourcesResponse, error)
- func (_m *K8sApplicationService) GetManifestsByBatch(ctx context.Context, request []k8s.ResourceRequestBean) ([]k8s.BatchResourceResponse, error)
- func (_m *K8sApplicationService) GetPodLogs(request *k8s.ResourceRequestBean) (io.ReadCloser, error)
- func (_m *K8sApplicationService) GetResource(request *k8s.ResourceRequestBean) (*application.ManifestResponse, error)
- func (_m *K8sApplicationService) GetResourceInfo() (*k8s.ResourceInfo, error)
- func (_m *K8sApplicationService) GetResourceList(token string, request *k8s.ResourceRequestBean, ...) (*application.ClusterResourceListMap, error)
- func (_m *K8sApplicationService) GetRestConfigByCluster(_a0 *cluster.ClusterBean) (*rest.Config, error)
- func (_m *K8sApplicationService) GetRestConfigByClusterId(clusterId int) (*rest.Config, error)
- func (_m *K8sApplicationService) GetUrlsByBatch(resp []k8s.BatchResourceResponse) []interface{}
- func (_m *K8sApplicationService) ListEvents(request *k8s.ResourceRequestBean) (*application.EventsResponse, error)
- func (_m *K8sApplicationService) UpdateResource(request *k8s.ResourceRequestBean) (*application.ManifestResponse, error)
- func (_m *K8sApplicationService) ValidateResourceRequest(appIdentifier *client.AppIdentifier, request *application.K8sRequestBean) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sApplicationService ¶
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
func (_m *K8sApplicationService) ApplyResources(token string, request *application.ApplyResourcesRequest, resourceRbacHandler func(string, string, k8s.ResourceRequestBean, string) bool) ([]*application.ApplyResourcesResponse, error)
ApplyResources provides a mock function with given fields: token, request, resourceRbacHandler
func (*K8sApplicationService) CreateResource ¶
func (_m *K8sApplicationService) CreateResource(request *k8s.ResourceRequestBean) (*application.ManifestResponse, error)
CreateResource provides a mock function with given fields: request
func (*K8sApplicationService) DeleteResource ¶
func (_m *K8sApplicationService) DeleteResource(request *k8s.ResourceRequestBean) (*application.ManifestResponse, error)
DeleteResource provides a mock function with given fields: request
func (*K8sApplicationService) FilterServiceAndIngress ¶
func (_m *K8sApplicationService) FilterServiceAndIngress(resourceTreeInf map[string]interface{}, validRequests []k8s.ResourceRequestBean, appDetail bean.AppDetailContainer, appId string) []k8s.ResourceRequestBean
FilterServiceAndIngress provides a mock function with given fields: resourceTreeInf, validRequests, appDetail, appId
func (*K8sApplicationService) GetAllApiResources ¶ added in v0.6.13
func (_m *K8sApplicationService) GetAllApiResources(clusterId int, isSuperAdmin bool, userId int32) (*application.GetAllApiResourcesResponse, error)
GetAllApiResources provides a mock function with given fields: 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 ¶
func (_m *K8sApplicationService) GetPodLogs(request *k8s.ResourceRequestBean) (io.ReadCloser, error)
GetPodLogs provides a mock function with given fields: request
func (*K8sApplicationService) GetResource ¶
func (_m *K8sApplicationService) GetResource(request *k8s.ResourceRequestBean) (*application.ManifestResponse, error)
GetResource provides a mock function with given fields: request
func (*K8sApplicationService) GetResourceInfo ¶
func (_m *K8sApplicationService) GetResourceInfo() (*k8s.ResourceInfo, error)
GetResourceInfo provides a mock function with given fields:
func (*K8sApplicationService) GetResourceList ¶ added in v0.6.13
func (_m *K8sApplicationService) GetResourceList(token string, request *k8s.ResourceRequestBean, validateResourceAccess func(string, string, k8s.ResourceRequestBean, string) bool) (*application.ClusterResourceListMap, error)
GetResourceList provides a mock function with given fields: token, request, validateResourceAccess
func (*K8sApplicationService) GetRestConfigByCluster ¶
func (_m *K8sApplicationService) GetRestConfigByCluster(_a0 *cluster.ClusterBean) (*rest.Config, error)
GetRestConfigByCluster provides a mock function with given fields: _a0
func (*K8sApplicationService) GetRestConfigByClusterId ¶
func (_m *K8sApplicationService) GetRestConfigByClusterId(clusterId int) (*rest.Config, error)
GetRestConfigByClusterId provides a mock function with given fields: clusterId
func (*K8sApplicationService) GetUrlsByBatch ¶
func (_m *K8sApplicationService) GetUrlsByBatch(resp []k8s.BatchResourceResponse) []interface{}
GetUrlsByBatch provides a mock function with given fields: resp
func (*K8sApplicationService) ListEvents ¶
func (_m *K8sApplicationService) ListEvents(request *k8s.ResourceRequestBean) (*application.EventsResponse, error)
ListEvents provides a mock function with given fields: request
func (*K8sApplicationService) UpdateResource ¶
func (_m *K8sApplicationService) UpdateResource(request *k8s.ResourceRequestBean) (*application.ManifestResponse, error)
UpdateResource provides a mock function with given fields: request
func (*K8sApplicationService) ValidateResourceRequest ¶
func (_m *K8sApplicationService) ValidateResourceRequest(appIdentifier *client.AppIdentifier, request *application.K8sRequestBean) (bool, error)
ValidateResourceRequest provides a mock function with given fields: appIdentifier, request