openpitrix

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 16 Imported by: 10

Documentation

Overview

Package openpitrix is a generated GoMock package.

Copyright 2020 The KubeSphere Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Index

Constants

View Source
const (
	RuntimeAnnotationKey = "openpitrix_runtime"
	KubernetesProvider   = "kubernetes"
	Unknown              = "-"
	DeploySuffix         = "-Deployment"
	DaemonSuffix         = "-DaemonSet"
	StateSuffix          = "-StatefulSet"
	SystemUsername       = "system"
	SystemUserPath       = ":system"
)

Variables

This section is empty.

Functions

func ContextWithUsername

func ContextWithUsername(username string) context.Context

func IsDeleted

func IsDeleted(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func SystemContext

func SystemContext() context.Context

Types

type Client

type Client interface {
	pb.RuntimeManagerClient
	pb.ClusterManagerClient
	pb.AppManagerClient
	pb.RepoManagerClient
	pb.CategoryManagerClient
	pb.AttachmentManagerClient
	pb.RepoIndexerClient
	// upsert the openpitrix runtime when cluster is updated or created
	UpsertRuntime(cluster string, kubeConfig string) error
	// clean up the openpitrix runtime when cluster is deleted
	CleanupRuntime(cluster string) error
	// migrate the openpitrix runtime when upgrade ks2.x to ks3.x
	MigrateRuntime(runtimeId string, cluster string) error
}

func NewClient

func NewClient(options *Options) (Client, error)

will return a nil client and nil error if endpoint is empty

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) AddClusterNodes

AddClusterNodes mocks base method.

func (*MockClient) AddNodeKeyPairs

AddNodeKeyPairs mocks base method.

func (*MockClient) AddTableClusterNodes

func (m *MockClient) AddTableClusterNodes(ctx context.Context, in *pb.AddTableClusterNodesRequest, opts ...grpc.CallOption) (*empty.Empty, error)

AddTableClusterNodes mocks base method.

func (*MockClient) AdminPassAppVersion

func (m *MockClient) AdminPassAppVersion(ctx context.Context, in *pb.PassAppVersionRequest, opts ...grpc.CallOption) (*pb.PassAppVersionResponse, error)

AdminPassAppVersion mocks base method.

func (*MockClient) AdminRejectAppVersion

func (m *MockClient) AdminRejectAppVersion(ctx context.Context, in *pb.RejectAppVersionRequest, opts ...grpc.CallOption) (*pb.RejectAppVersionResponse, error)

AdminRejectAppVersion mocks base method.

func (*MockClient) AppendAttachment

AppendAttachment mocks base method.

func (*MockClient) AttachKeyPairs

AttachKeyPairs mocks base method.

func (*MockClient) BusinessPassAppVersion

func (m *MockClient) BusinessPassAppVersion(ctx context.Context, in *pb.PassAppVersionRequest, opts ...grpc.CallOption) (*pb.PassAppVersionResponse, error)

BusinessPassAppVersion mocks base method.

func (*MockClient) BusinessRejectAppVersion

func (m *MockClient) BusinessRejectAppVersion(ctx context.Context, in *pb.RejectAppVersionRequest, opts ...grpc.CallOption) (*pb.RejectAppVersionResponse, error)

BusinessRejectAppVersion mocks base method.

func (*MockClient) BusinessReviewAppVersion

func (m *MockClient) BusinessReviewAppVersion(ctx context.Context, in *pb.ReviewAppVersionRequest, opts ...grpc.CallOption) (*pb.ReviewAppVersionResponse, error)

BusinessReviewAppVersion mocks base method.

func (*MockClient) CancelAppVersion

CancelAppVersion mocks base method.

func (*MockClient) CeaseClusters

CeaseClusters mocks base method.

func (*MockClient) CleanupRuntime

func (m *MockClient) CleanupRuntime(cluster string) error

CleanupRuntime mocks base method.

func (*MockClient) CreateApp

func (m *MockClient) CreateApp(ctx context.Context, in *pb.CreateAppRequest, opts ...grpc.CallOption) (*pb.CreateAppResponse, error)

CreateApp mocks base method.

func (*MockClient) CreateAppVersion

CreateAppVersion mocks base method.

func (*MockClient) CreateAttachment

CreateAttachment mocks base method.

func (*MockClient) CreateCategory

CreateCategory mocks base method.

func (*MockClient) CreateCluster

CreateCluster mocks base method.

func (*MockClient) CreateDebugCluster

func (m *MockClient) CreateDebugCluster(ctx context.Context, in *pb.CreateClusterRequest, opts ...grpc.CallOption) (*pb.CreateClusterResponse, error)

CreateDebugCluster mocks base method.

func (*MockClient) CreateDebugRuntime

func (m *MockClient) CreateDebugRuntime(ctx context.Context, in *pb.CreateRuntimeRequest, opts ...grpc.CallOption) (*pb.CreateRuntimeResponse, error)

CreateDebugRuntime mocks base method.

func (*MockClient) CreateDebugRuntimeCredential

func (m *MockClient) CreateDebugRuntimeCredential(ctx context.Context, in *pb.CreateRuntimeCredentialRequest, opts ...grpc.CallOption) (*pb.CreateRuntimeCredentialResponse, error)

CreateDebugRuntimeCredential mocks base method.

func (*MockClient) CreateKeyPair

CreateKeyPair mocks base method.

func (*MockClient) CreateRepo

func (m *MockClient) CreateRepo(ctx context.Context, in *pb.CreateRepoRequest, opts ...grpc.CallOption) (*pb.CreateRepoResponse, error)

CreateRepo mocks base method.

func (*MockClient) CreateRuntime

CreateRuntime mocks base method.

func (*MockClient) CreateRuntimeCredential

CreateRuntimeCredential mocks base method.

func (*MockClient) DeleteAppVersion

DeleteAppVersion mocks base method.

func (*MockClient) DeleteApps

func (m *MockClient) DeleteApps(ctx context.Context, in *pb.DeleteAppsRequest, opts ...grpc.CallOption) (*pb.DeleteAppsResponse, error)

DeleteApps mocks base method.

func (*MockClient) DeleteAttachments

DeleteAttachments mocks base method.

func (*MockClient) DeleteCategories

DeleteCategories mocks base method.

func (*MockClient) DeleteClusterInRuntime

DeleteClusterInRuntime mocks base method.

func (*MockClient) DeleteClusterNodes

DeleteClusterNodes mocks base method.

func (*MockClient) DeleteClusters

DeleteClusters mocks base method.

func (*MockClient) DeleteKeyPairs

DeleteKeyPairs mocks base method.

func (*MockClient) DeleteNodeKeyPairs

DeleteNodeKeyPairs mocks base method.

func (*MockClient) DeleteRepos

func (m *MockClient) DeleteRepos(ctx context.Context, in *pb.DeleteReposRequest, opts ...grpc.CallOption) (*pb.DeleteReposResponse, error)

DeleteRepos mocks base method.

func (*MockClient) DeleteRuntimeCredentials

DeleteRuntimeCredentials mocks base method.

func (*MockClient) DeleteRuntimes

DeleteRuntimes mocks base method.

func (*MockClient) DeleteTableClusterNodes

func (m *MockClient) DeleteTableClusterNodes(ctx context.Context, in *pb.DeleteTableClusterNodesRequest, opts ...grpc.CallOption) (*empty.Empty, error)

DeleteTableClusterNodes mocks base method.

func (*MockClient) DescribeActiveAppVersions

func (m *MockClient) DescribeActiveAppVersions(ctx context.Context, in *pb.DescribeAppVersionsRequest, opts ...grpc.CallOption) (*pb.DescribeAppVersionsResponse, error)

DescribeActiveAppVersions mocks base method.

func (*MockClient) DescribeActiveApps

func (m *MockClient) DescribeActiveApps(ctx context.Context, in *pb.DescribeAppsRequest, opts ...grpc.CallOption) (*pb.DescribeAppsResponse, error)

DescribeActiveApps mocks base method.

func (*MockClient) DescribeAppClusters

DescribeAppClusters mocks base method.

func (*MockClient) DescribeAppVersionAudits

DescribeAppVersionAudits mocks base method.

func (*MockClient) DescribeAppVersionReviews

DescribeAppVersionReviews mocks base method.

func (*MockClient) DescribeAppVersions

DescribeAppVersions mocks base method.

func (*MockClient) DescribeApps

DescribeApps mocks base method.

func (*MockClient) DescribeCategories

DescribeCategories mocks base method.

func (*MockClient) DescribeClusterNodes

DescribeClusterNodes mocks base method.

func (*MockClient) DescribeClusters

DescribeClusters mocks base method.

func (*MockClient) DescribeDebugAppClusters

func (m *MockClient) DescribeDebugAppClusters(ctx context.Context, in *pb.DescribeAppClustersRequest, opts ...grpc.CallOption) (*pb.DescribeAppClustersResponse, error)

DescribeDebugAppClusters mocks base method.

func (*MockClient) DescribeDebugClusters

func (m *MockClient) DescribeDebugClusters(ctx context.Context, in *pb.DescribeClustersRequest, opts ...grpc.CallOption) (*pb.DescribeClustersResponse, error)

DescribeDebugClusters mocks base method.

func (*MockClient) DescribeDebugRuntimeCredentials

func (m *MockClient) DescribeDebugRuntimeCredentials(ctx context.Context, in *pb.DescribeRuntimeCredentialsRequest, opts ...grpc.CallOption) (*pb.DescribeRuntimeCredentialsResponse, error)

DescribeDebugRuntimeCredentials mocks base method.

func (*MockClient) DescribeDebugRuntimes

func (m *MockClient) DescribeDebugRuntimes(ctx context.Context, in *pb.DescribeRuntimesRequest, opts ...grpc.CallOption) (*pb.DescribeRuntimesResponse, error)

DescribeDebugRuntimes mocks base method.

func (*MockClient) DescribeKeyPairs

DescribeKeyPairs mocks base method.

func (*MockClient) DescribeRepoEvents

DescribeRepoEvents mocks base method.

func (*MockClient) DescribeRepos

DescribeRepos mocks base method.

func (*MockClient) DescribeRuntimeCredentials

DescribeRuntimeCredentials mocks base method.

func (*MockClient) DescribeRuntimeDetails

func (m *MockClient) DescribeRuntimeDetails(ctx context.Context, in *pb.DescribeRuntimesRequest, opts ...grpc.CallOption) (*pb.DescribeRuntimeDetailsResponse, error)

DescribeRuntimeDetails mocks base method.

func (*MockClient) DescribeRuntimeProviderZones

DescribeRuntimeProviderZones mocks base method.

func (*MockClient) DescribeRuntimes

DescribeRuntimes mocks base method.

func (*MockClient) DescribeSubnets

DescribeSubnets mocks base method.

func (*MockClient) DetachKeyPairs

DetachKeyPairs mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) GetAppStatistics

GetAppStatistics mocks base method.

func (*MockClient) GetAppVersionPackage

GetAppVersionPackage mocks base method.

func (*MockClient) GetAppVersionPackageFiles

GetAppVersionPackageFiles mocks base method.

func (*MockClient) GetAttachments

GetAttachments mocks base method.

func (*MockClient) GetClusterStatistics

GetClusterStatistics mocks base method.

func (*MockClient) GetRuntimeStatistics

GetRuntimeStatistics mocks base method.

func (*MockClient) IndexRepo

func (m *MockClient) IndexRepo(ctx context.Context, in *pb.IndexRepoRequest, opts ...grpc.CallOption) (*pb.IndexRepoResponse, error)

IndexRepo mocks base method.

func (*MockClient) IsvPassAppVersion

func (m *MockClient) IsvPassAppVersion(ctx context.Context, in *pb.PassAppVersionRequest, opts ...grpc.CallOption) (*pb.PassAppVersionResponse, error)

IsvPassAppVersion mocks base method.

func (*MockClient) IsvRejectAppVersion

func (m *MockClient) IsvRejectAppVersion(ctx context.Context, in *pb.RejectAppVersionRequest, opts ...grpc.CallOption) (*pb.RejectAppVersionResponse, error)

IsvRejectAppVersion mocks base method.

func (*MockClient) IsvReviewAppVersion

func (m *MockClient) IsvReviewAppVersion(ctx context.Context, in *pb.ReviewAppVersionRequest, opts ...grpc.CallOption) (*pb.ReviewAppVersionResponse, error)

IsvReviewAppVersion mocks base method.

func (*MockClient) MigrateClusterInRuntime

MigrateClusterInRuntime mocks base method.

func (*MockClient) MigrateRuntime

func (m *MockClient) MigrateRuntime(runtimeId, cluster string) error

MigrateRuntime mocks base method.

func (*MockClient) ModifyApp

func (m *MockClient) ModifyApp(ctx context.Context, in *pb.ModifyAppRequest, opts ...grpc.CallOption) (*pb.ModifyAppResponse, error)

ModifyApp mocks base method.

func (*MockClient) ModifyAppVersion

ModifyAppVersion mocks base method.

func (*MockClient) ModifyCategory

ModifyCategory mocks base method.

func (*MockClient) ModifyCluster

ModifyCluster mocks base method.

func (*MockClient) ModifyClusterAttributes

ModifyClusterAttributes mocks base method.

func (*MockClient) ModifyClusterNode

ModifyClusterNode mocks base method.

func (*MockClient) ModifyClusterNodeAttributes

ModifyClusterNodeAttributes mocks base method.

func (*MockClient) ModifyRepo

func (m *MockClient) ModifyRepo(ctx context.Context, in *pb.ModifyRepoRequest, opts ...grpc.CallOption) (*pb.ModifyRepoResponse, error)

ModifyRepo mocks base method.

func (*MockClient) ModifyRuntime

ModifyRuntime mocks base method.

func (*MockClient) ModifyRuntimeCredential

ModifyRuntimeCredential mocks base method.

func (*MockClient) RecoverAppVersion

RecoverAppVersion mocks base method.

func (*MockClient) RecoverClusters

RecoverClusters mocks base method.

func (*MockClient) ReleaseAppVersion

ReleaseAppVersion mocks base method.

func (*MockClient) ReplaceAttachment

ReplaceAttachment mocks base method.

func (*MockClient) ResizeCluster

ResizeCluster mocks base method.

func (*MockClient) RollbackCluster

RollbackCluster mocks base method.

func (*MockClient) StartClusters

StartClusters mocks base method.

func (*MockClient) StopClusters

StopClusters mocks base method.

func (*MockClient) SubmitAppVersion

SubmitAppVersion mocks base method.

func (*MockClient) SuspendAppVersion

SuspendAppVersion mocks base method.

func (*MockClient) SyncRepo

func (m *MockClient) SyncRepo(ctx context.Context, in *pb.SyncRepoRequest, opts ...grpc.CallOption) (*pb.SyncRepoResponse, error)

SyncRepo mocks base method.

func (*MockClient) TechnicalPassAppVersion

func (m *MockClient) TechnicalPassAppVersion(ctx context.Context, in *pb.PassAppVersionRequest, opts ...grpc.CallOption) (*pb.PassAppVersionResponse, error)

TechnicalPassAppVersion mocks base method.

func (*MockClient) TechnicalRejectAppVersion

func (m *MockClient) TechnicalRejectAppVersion(ctx context.Context, in *pb.RejectAppVersionRequest, opts ...grpc.CallOption) (*pb.RejectAppVersionResponse, error)

TechnicalRejectAppVersion mocks base method.

func (*MockClient) TechnicalReviewAppVersion

func (m *MockClient) TechnicalReviewAppVersion(ctx context.Context, in *pb.ReviewAppVersionRequest, opts ...grpc.CallOption) (*pb.ReviewAppVersionResponse, error)

TechnicalReviewAppVersion mocks base method.

func (*MockClient) UpdateClusterEnv

UpdateClusterEnv mocks base method.

func (*MockClient) UpgradeCluster

UpgradeCluster mocks base method.

func (*MockClient) UploadAppAttachment

UploadAppAttachment mocks base method.

func (*MockClient) UpsertRuntime

func (m *MockClient) UpsertRuntime(cluster, kubeConfig string) error

UpsertRuntime mocks base method.

func (*MockClient) ValidatePackage

ValidatePackage mocks base method.

func (*MockClient) ValidateRepo

ValidateRepo mocks base method.

func (*MockClient) ValidateRuntimeCredential

ValidateRuntimeCredential mocks base method.

type MockClientMockRecorder

type MockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) AddClusterNodes

func (mr *MockClientMockRecorder) AddClusterNodes(ctx, in interface{}, opts ...interface{}) *gomock.Call

AddClusterNodes indicates an expected call of AddClusterNodes.

func (*MockClientMockRecorder) AddNodeKeyPairs

func (mr *MockClientMockRecorder) AddNodeKeyPairs(ctx, in interface{}, opts ...interface{}) *gomock.Call

AddNodeKeyPairs indicates an expected call of AddNodeKeyPairs.

func (*MockClientMockRecorder) AddTableClusterNodes

func (mr *MockClientMockRecorder) AddTableClusterNodes(ctx, in interface{}, opts ...interface{}) *gomock.Call

AddTableClusterNodes indicates an expected call of AddTableClusterNodes.

func (*MockClientMockRecorder) AdminPassAppVersion

func (mr *MockClientMockRecorder) AdminPassAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

AdminPassAppVersion indicates an expected call of AdminPassAppVersion.

func (*MockClientMockRecorder) AdminRejectAppVersion

func (mr *MockClientMockRecorder) AdminRejectAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

AdminRejectAppVersion indicates an expected call of AdminRejectAppVersion.

func (*MockClientMockRecorder) AppendAttachment

func (mr *MockClientMockRecorder) AppendAttachment(ctx, in interface{}, opts ...interface{}) *gomock.Call

AppendAttachment indicates an expected call of AppendAttachment.

func (*MockClientMockRecorder) AttachKeyPairs

func (mr *MockClientMockRecorder) AttachKeyPairs(ctx, in interface{}, opts ...interface{}) *gomock.Call

AttachKeyPairs indicates an expected call of AttachKeyPairs.

func (*MockClientMockRecorder) BusinessPassAppVersion

func (mr *MockClientMockRecorder) BusinessPassAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

BusinessPassAppVersion indicates an expected call of BusinessPassAppVersion.

func (*MockClientMockRecorder) BusinessRejectAppVersion

func (mr *MockClientMockRecorder) BusinessRejectAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

BusinessRejectAppVersion indicates an expected call of BusinessRejectAppVersion.

func (*MockClientMockRecorder) BusinessReviewAppVersion

func (mr *MockClientMockRecorder) BusinessReviewAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

BusinessReviewAppVersion indicates an expected call of BusinessReviewAppVersion.

func (*MockClientMockRecorder) CancelAppVersion

func (mr *MockClientMockRecorder) CancelAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

CancelAppVersion indicates an expected call of CancelAppVersion.

func (*MockClientMockRecorder) CeaseClusters

func (mr *MockClientMockRecorder) CeaseClusters(ctx, in interface{}, opts ...interface{}) *gomock.Call

CeaseClusters indicates an expected call of CeaseClusters.

func (*MockClientMockRecorder) CleanupRuntime

func (mr *MockClientMockRecorder) CleanupRuntime(cluster interface{}) *gomock.Call

CleanupRuntime indicates an expected call of CleanupRuntime.

func (*MockClientMockRecorder) CreateApp

func (mr *MockClientMockRecorder) CreateApp(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateApp indicates an expected call of CreateApp.

func (*MockClientMockRecorder) CreateAppVersion

func (mr *MockClientMockRecorder) CreateAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateAppVersion indicates an expected call of CreateAppVersion.

func (*MockClientMockRecorder) CreateAttachment

func (mr *MockClientMockRecorder) CreateAttachment(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateAttachment indicates an expected call of CreateAttachment.

func (*MockClientMockRecorder) CreateCategory

func (mr *MockClientMockRecorder) CreateCategory(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateCategory indicates an expected call of CreateCategory.

func (*MockClientMockRecorder) CreateCluster

func (mr *MockClientMockRecorder) CreateCluster(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateCluster indicates an expected call of CreateCluster.

func (*MockClientMockRecorder) CreateDebugCluster

func (mr *MockClientMockRecorder) CreateDebugCluster(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateDebugCluster indicates an expected call of CreateDebugCluster.

func (*MockClientMockRecorder) CreateDebugRuntime

func (mr *MockClientMockRecorder) CreateDebugRuntime(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateDebugRuntime indicates an expected call of CreateDebugRuntime.

func (*MockClientMockRecorder) CreateDebugRuntimeCredential

func (mr *MockClientMockRecorder) CreateDebugRuntimeCredential(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateDebugRuntimeCredential indicates an expected call of CreateDebugRuntimeCredential.

func (*MockClientMockRecorder) CreateKeyPair

func (mr *MockClientMockRecorder) CreateKeyPair(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateKeyPair indicates an expected call of CreateKeyPair.

func (*MockClientMockRecorder) CreateRepo

func (mr *MockClientMockRecorder) CreateRepo(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateRepo indicates an expected call of CreateRepo.

func (*MockClientMockRecorder) CreateRuntime

func (mr *MockClientMockRecorder) CreateRuntime(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateRuntime indicates an expected call of CreateRuntime.

func (*MockClientMockRecorder) CreateRuntimeCredential

func (mr *MockClientMockRecorder) CreateRuntimeCredential(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateRuntimeCredential indicates an expected call of CreateRuntimeCredential.

func (*MockClientMockRecorder) DeleteAppVersion

func (mr *MockClientMockRecorder) DeleteAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteAppVersion indicates an expected call of DeleteAppVersion.

func (*MockClientMockRecorder) DeleteApps

func (mr *MockClientMockRecorder) DeleteApps(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteApps indicates an expected call of DeleteApps.

func (*MockClientMockRecorder) DeleteAttachments

func (mr *MockClientMockRecorder) DeleteAttachments(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteAttachments indicates an expected call of DeleteAttachments.

func (*MockClientMockRecorder) DeleteCategories

func (mr *MockClientMockRecorder) DeleteCategories(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteCategories indicates an expected call of DeleteCategories.

func (*MockClientMockRecorder) DeleteClusterInRuntime

func (mr *MockClientMockRecorder) DeleteClusterInRuntime(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteClusterInRuntime indicates an expected call of DeleteClusterInRuntime.

func (*MockClientMockRecorder) DeleteClusterNodes

func (mr *MockClientMockRecorder) DeleteClusterNodes(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteClusterNodes indicates an expected call of DeleteClusterNodes.

func (*MockClientMockRecorder) DeleteClusters

func (mr *MockClientMockRecorder) DeleteClusters(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteClusters indicates an expected call of DeleteClusters.

func (*MockClientMockRecorder) DeleteKeyPairs

func (mr *MockClientMockRecorder) DeleteKeyPairs(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteKeyPairs indicates an expected call of DeleteKeyPairs.

func (*MockClientMockRecorder) DeleteNodeKeyPairs

func (mr *MockClientMockRecorder) DeleteNodeKeyPairs(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteNodeKeyPairs indicates an expected call of DeleteNodeKeyPairs.

func (*MockClientMockRecorder) DeleteRepos

func (mr *MockClientMockRecorder) DeleteRepos(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteRepos indicates an expected call of DeleteRepos.

func (*MockClientMockRecorder) DeleteRuntimeCredentials

func (mr *MockClientMockRecorder) DeleteRuntimeCredentials(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteRuntimeCredentials indicates an expected call of DeleteRuntimeCredentials.

func (*MockClientMockRecorder) DeleteRuntimes

func (mr *MockClientMockRecorder) DeleteRuntimes(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteRuntimes indicates an expected call of DeleteRuntimes.

func (*MockClientMockRecorder) DeleteTableClusterNodes

func (mr *MockClientMockRecorder) DeleteTableClusterNodes(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteTableClusterNodes indicates an expected call of DeleteTableClusterNodes.

func (*MockClientMockRecorder) DescribeActiveAppVersions

func (mr *MockClientMockRecorder) DescribeActiveAppVersions(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeActiveAppVersions indicates an expected call of DescribeActiveAppVersions.

func (*MockClientMockRecorder) DescribeActiveApps

func (mr *MockClientMockRecorder) DescribeActiveApps(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeActiveApps indicates an expected call of DescribeActiveApps.

func (*MockClientMockRecorder) DescribeAppClusters

func (mr *MockClientMockRecorder) DescribeAppClusters(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeAppClusters indicates an expected call of DescribeAppClusters.

func (*MockClientMockRecorder) DescribeAppVersionAudits

func (mr *MockClientMockRecorder) DescribeAppVersionAudits(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeAppVersionAudits indicates an expected call of DescribeAppVersionAudits.

func (*MockClientMockRecorder) DescribeAppVersionReviews

func (mr *MockClientMockRecorder) DescribeAppVersionReviews(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeAppVersionReviews indicates an expected call of DescribeAppVersionReviews.

func (*MockClientMockRecorder) DescribeAppVersions

func (mr *MockClientMockRecorder) DescribeAppVersions(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeAppVersions indicates an expected call of DescribeAppVersions.

func (*MockClientMockRecorder) DescribeApps

func (mr *MockClientMockRecorder) DescribeApps(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeApps indicates an expected call of DescribeApps.

func (*MockClientMockRecorder) DescribeCategories

func (mr *MockClientMockRecorder) DescribeCategories(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeCategories indicates an expected call of DescribeCategories.

func (*MockClientMockRecorder) DescribeClusterNodes

func (mr *MockClientMockRecorder) DescribeClusterNodes(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeClusterNodes indicates an expected call of DescribeClusterNodes.

func (*MockClientMockRecorder) DescribeClusters

func (mr *MockClientMockRecorder) DescribeClusters(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeClusters indicates an expected call of DescribeClusters.

func (*MockClientMockRecorder) DescribeDebugAppClusters

func (mr *MockClientMockRecorder) DescribeDebugAppClusters(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeDebugAppClusters indicates an expected call of DescribeDebugAppClusters.

func (*MockClientMockRecorder) DescribeDebugClusters

func (mr *MockClientMockRecorder) DescribeDebugClusters(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeDebugClusters indicates an expected call of DescribeDebugClusters.

func (*MockClientMockRecorder) DescribeDebugRuntimeCredentials

func (mr *MockClientMockRecorder) DescribeDebugRuntimeCredentials(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeDebugRuntimeCredentials indicates an expected call of DescribeDebugRuntimeCredentials.

func (*MockClientMockRecorder) DescribeDebugRuntimes

func (mr *MockClientMockRecorder) DescribeDebugRuntimes(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeDebugRuntimes indicates an expected call of DescribeDebugRuntimes.

func (*MockClientMockRecorder) DescribeKeyPairs

func (mr *MockClientMockRecorder) DescribeKeyPairs(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeKeyPairs indicates an expected call of DescribeKeyPairs.

func (*MockClientMockRecorder) DescribeRepoEvents

func (mr *MockClientMockRecorder) DescribeRepoEvents(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeRepoEvents indicates an expected call of DescribeRepoEvents.

func (*MockClientMockRecorder) DescribeRepos

func (mr *MockClientMockRecorder) DescribeRepos(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeRepos indicates an expected call of DescribeRepos.

func (*MockClientMockRecorder) DescribeRuntimeCredentials

func (mr *MockClientMockRecorder) DescribeRuntimeCredentials(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeRuntimeCredentials indicates an expected call of DescribeRuntimeCredentials.

func (*MockClientMockRecorder) DescribeRuntimeDetails

func (mr *MockClientMockRecorder) DescribeRuntimeDetails(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeRuntimeDetails indicates an expected call of DescribeRuntimeDetails.

func (*MockClientMockRecorder) DescribeRuntimeProviderZones

func (mr *MockClientMockRecorder) DescribeRuntimeProviderZones(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeRuntimeProviderZones indicates an expected call of DescribeRuntimeProviderZones.

func (*MockClientMockRecorder) DescribeRuntimes

func (mr *MockClientMockRecorder) DescribeRuntimes(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeRuntimes indicates an expected call of DescribeRuntimes.

func (*MockClientMockRecorder) DescribeSubnets

func (mr *MockClientMockRecorder) DescribeSubnets(ctx, in interface{}, opts ...interface{}) *gomock.Call

DescribeSubnets indicates an expected call of DescribeSubnets.

func (*MockClientMockRecorder) DetachKeyPairs

func (mr *MockClientMockRecorder) DetachKeyPairs(ctx, in interface{}, opts ...interface{}) *gomock.Call

DetachKeyPairs indicates an expected call of DetachKeyPairs.

func (*MockClientMockRecorder) GetAppStatistics

func (mr *MockClientMockRecorder) GetAppStatistics(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetAppStatistics indicates an expected call of GetAppStatistics.

func (*MockClientMockRecorder) GetAppVersionPackage

func (mr *MockClientMockRecorder) GetAppVersionPackage(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetAppVersionPackage indicates an expected call of GetAppVersionPackage.

func (*MockClientMockRecorder) GetAppVersionPackageFiles

func (mr *MockClientMockRecorder) GetAppVersionPackageFiles(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetAppVersionPackageFiles indicates an expected call of GetAppVersionPackageFiles.

func (*MockClientMockRecorder) GetAttachments

func (mr *MockClientMockRecorder) GetAttachments(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetAttachments indicates an expected call of GetAttachments.

func (*MockClientMockRecorder) GetClusterStatistics

func (mr *MockClientMockRecorder) GetClusterStatistics(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetClusterStatistics indicates an expected call of GetClusterStatistics.

func (*MockClientMockRecorder) GetRuntimeStatistics

func (mr *MockClientMockRecorder) GetRuntimeStatistics(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetRuntimeStatistics indicates an expected call of GetRuntimeStatistics.

func (*MockClientMockRecorder) IndexRepo

func (mr *MockClientMockRecorder) IndexRepo(ctx, in interface{}, opts ...interface{}) *gomock.Call

IndexRepo indicates an expected call of IndexRepo.

func (*MockClientMockRecorder) IsvPassAppVersion

func (mr *MockClientMockRecorder) IsvPassAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

IsvPassAppVersion indicates an expected call of IsvPassAppVersion.

func (*MockClientMockRecorder) IsvRejectAppVersion

func (mr *MockClientMockRecorder) IsvRejectAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

IsvRejectAppVersion indicates an expected call of IsvRejectAppVersion.

func (*MockClientMockRecorder) IsvReviewAppVersion

func (mr *MockClientMockRecorder) IsvReviewAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

IsvReviewAppVersion indicates an expected call of IsvReviewAppVersion.

func (*MockClientMockRecorder) MigrateClusterInRuntime

func (mr *MockClientMockRecorder) MigrateClusterInRuntime(ctx, in interface{}, opts ...interface{}) *gomock.Call

MigrateClusterInRuntime indicates an expected call of MigrateClusterInRuntime.

func (*MockClientMockRecorder) MigrateRuntime

func (mr *MockClientMockRecorder) MigrateRuntime(runtimeId, cluster interface{}) *gomock.Call

MigrateRuntime indicates an expected call of MigrateRuntime.

func (*MockClientMockRecorder) ModifyApp

func (mr *MockClientMockRecorder) ModifyApp(ctx, in interface{}, opts ...interface{}) *gomock.Call

ModifyApp indicates an expected call of ModifyApp.

func (*MockClientMockRecorder) ModifyAppVersion

func (mr *MockClientMockRecorder) ModifyAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

ModifyAppVersion indicates an expected call of ModifyAppVersion.

func (*MockClientMockRecorder) ModifyCategory

func (mr *MockClientMockRecorder) ModifyCategory(ctx, in interface{}, opts ...interface{}) *gomock.Call

ModifyCategory indicates an expected call of ModifyCategory.

func (*MockClientMockRecorder) ModifyCluster

func (mr *MockClientMockRecorder) ModifyCluster(ctx, in interface{}, opts ...interface{}) *gomock.Call

ModifyCluster indicates an expected call of ModifyCluster.

func (*MockClientMockRecorder) ModifyClusterAttributes

func (mr *MockClientMockRecorder) ModifyClusterAttributes(ctx, in interface{}, opts ...interface{}) *gomock.Call

ModifyClusterAttributes indicates an expected call of ModifyClusterAttributes.

func (*MockClientMockRecorder) ModifyClusterNode

func (mr *MockClientMockRecorder) ModifyClusterNode(ctx, in interface{}, opts ...interface{}) *gomock.Call

ModifyClusterNode indicates an expected call of ModifyClusterNode.

func (*MockClientMockRecorder) ModifyClusterNodeAttributes

func (mr *MockClientMockRecorder) ModifyClusterNodeAttributes(ctx, in interface{}, opts ...interface{}) *gomock.Call

ModifyClusterNodeAttributes indicates an expected call of ModifyClusterNodeAttributes.

func (*MockClientMockRecorder) ModifyRepo

func (mr *MockClientMockRecorder) ModifyRepo(ctx, in interface{}, opts ...interface{}) *gomock.Call

ModifyRepo indicates an expected call of ModifyRepo.

func (*MockClientMockRecorder) ModifyRuntime

func (mr *MockClientMockRecorder) ModifyRuntime(ctx, in interface{}, opts ...interface{}) *gomock.Call

ModifyRuntime indicates an expected call of ModifyRuntime.

func (*MockClientMockRecorder) ModifyRuntimeCredential

func (mr *MockClientMockRecorder) ModifyRuntimeCredential(ctx, in interface{}, opts ...interface{}) *gomock.Call

ModifyRuntimeCredential indicates an expected call of ModifyRuntimeCredential.

func (*MockClientMockRecorder) RecoverAppVersion

func (mr *MockClientMockRecorder) RecoverAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

RecoverAppVersion indicates an expected call of RecoverAppVersion.

func (*MockClientMockRecorder) RecoverClusters

func (mr *MockClientMockRecorder) RecoverClusters(ctx, in interface{}, opts ...interface{}) *gomock.Call

RecoverClusters indicates an expected call of RecoverClusters.

func (*MockClientMockRecorder) ReleaseAppVersion

func (mr *MockClientMockRecorder) ReleaseAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

ReleaseAppVersion indicates an expected call of ReleaseAppVersion.

func (*MockClientMockRecorder) ReplaceAttachment

func (mr *MockClientMockRecorder) ReplaceAttachment(ctx, in interface{}, opts ...interface{}) *gomock.Call

ReplaceAttachment indicates an expected call of ReplaceAttachment.

func (*MockClientMockRecorder) ResizeCluster

func (mr *MockClientMockRecorder) ResizeCluster(ctx, in interface{}, opts ...interface{}) *gomock.Call

ResizeCluster indicates an expected call of ResizeCluster.

func (*MockClientMockRecorder) RollbackCluster

func (mr *MockClientMockRecorder) RollbackCluster(ctx, in interface{}, opts ...interface{}) *gomock.Call

RollbackCluster indicates an expected call of RollbackCluster.

func (*MockClientMockRecorder) StartClusters

func (mr *MockClientMockRecorder) StartClusters(ctx, in interface{}, opts ...interface{}) *gomock.Call

StartClusters indicates an expected call of StartClusters.

func (*MockClientMockRecorder) StopClusters

func (mr *MockClientMockRecorder) StopClusters(ctx, in interface{}, opts ...interface{}) *gomock.Call

StopClusters indicates an expected call of StopClusters.

func (*MockClientMockRecorder) SubmitAppVersion

func (mr *MockClientMockRecorder) SubmitAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

SubmitAppVersion indicates an expected call of SubmitAppVersion.

func (*MockClientMockRecorder) SuspendAppVersion

func (mr *MockClientMockRecorder) SuspendAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

SuspendAppVersion indicates an expected call of SuspendAppVersion.

func (*MockClientMockRecorder) SyncRepo

func (mr *MockClientMockRecorder) SyncRepo(ctx, in interface{}, opts ...interface{}) *gomock.Call

SyncRepo indicates an expected call of SyncRepo.

func (*MockClientMockRecorder) TechnicalPassAppVersion

func (mr *MockClientMockRecorder) TechnicalPassAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

TechnicalPassAppVersion indicates an expected call of TechnicalPassAppVersion.

func (*MockClientMockRecorder) TechnicalRejectAppVersion

func (mr *MockClientMockRecorder) TechnicalRejectAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

TechnicalRejectAppVersion indicates an expected call of TechnicalRejectAppVersion.

func (*MockClientMockRecorder) TechnicalReviewAppVersion

func (mr *MockClientMockRecorder) TechnicalReviewAppVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call

TechnicalReviewAppVersion indicates an expected call of TechnicalReviewAppVersion.

func (*MockClientMockRecorder) UpdateClusterEnv

func (mr *MockClientMockRecorder) UpdateClusterEnv(ctx, in interface{}, opts ...interface{}) *gomock.Call

UpdateClusterEnv indicates an expected call of UpdateClusterEnv.

func (*MockClientMockRecorder) UpgradeCluster

func (mr *MockClientMockRecorder) UpgradeCluster(ctx, in interface{}, opts ...interface{}) *gomock.Call

UpgradeCluster indicates an expected call of UpgradeCluster.

func (*MockClientMockRecorder) UploadAppAttachment

func (mr *MockClientMockRecorder) UploadAppAttachment(ctx, in interface{}, opts ...interface{}) *gomock.Call

UploadAppAttachment indicates an expected call of UploadAppAttachment.

func (*MockClientMockRecorder) UpsertRuntime

func (mr *MockClientMockRecorder) UpsertRuntime(cluster, kubeConfig interface{}) *gomock.Call

UpsertRuntime indicates an expected call of UpsertRuntime.

func (*MockClientMockRecorder) ValidatePackage

func (mr *MockClientMockRecorder) ValidatePackage(ctx, in interface{}, opts ...interface{}) *gomock.Call

ValidatePackage indicates an expected call of ValidatePackage.

func (*MockClientMockRecorder) ValidateRepo

func (mr *MockClientMockRecorder) ValidateRepo(ctx, in interface{}, opts ...interface{}) *gomock.Call

ValidateRepo indicates an expected call of ValidateRepo.

func (*MockClientMockRecorder) ValidateRuntimeCredential

func (mr *MockClientMockRecorder) ValidateRuntimeCredential(ctx, in interface{}, opts ...interface{}) *gomock.Call

ValidateRuntimeCredential indicates an expected call of ValidateRuntimeCredential.

type Options

type Options struct {
	RuntimeManagerEndpoint    string `json:"runtimeManagerEndpoint,omitempty" yaml:"runtimeManagerEndpoint,omitempty"`
	ClusterManagerEndpoint    string `json:"clusterManagerEndpoint,omitempty" yaml:"clusterManagerEndpoint,omitempty"`
	RepoManagerEndpoint       string `json:"repoManagerEndpoint,omitempty" yaml:"repoManagerEndpoint,omitempty"`
	AppManagerEndpoint        string `json:"appManagerEndpoint,omitempty" yaml:"appManagerEndpoint,omitempty"`
	CategoryManagerEndpoint   string `json:"categoryManagerEndpoint,omitempty" yaml:"categoryManagerEndpoint,omitempty"`
	AttachmentManagerEndpoint string `json:"attachmentManagerEndpoint,omitempty" yaml:"attachmentManagerEndpoint,omitempty"`
	RepoIndexerEndpoint       string `json:"repoIndexerEndpoint,omitempty" yaml:"repoIndexerEndpoint,omitempty"`
}

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

func (s *Options) AddFlags(fs *pflag.FlagSet, c *Options)

func (*Options) ApplyTo

func (s *Options) ApplyTo(options *Options)

func (*Options) IsEmpty

func (s *Options) IsEmpty() bool

func (*Options) Validate

func (s *Options) Validate() []error

Jump to

Keyboard shortcuts

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