client

package
v1.7.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 36 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMinioClient

func CreateMinioClient(minioServiceHost string, minioServicePort string,
	accessKey string, secretKey string, secure bool, region string) (*minio.Client, error)

func CreateMinioClientOrFatal

func CreateMinioClientOrFatal(minioServiceHost string, minioServicePort string,
	accessKey string, secretKey string, secure bool, region string, initConnectionTimeout time.Duration) *minio.Client

func CreateMySQLConfig

func CreateMySQLConfig(user, password string, mysqlServiceHost string,
	mysqlServicePort string, dbName string, mysqlGroupConcatMaxLen string, mysqlExtraParams map[string]string) *mysql.Config

Types

type ArgoClient

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

func NewArgoClientOrFatal

func NewArgoClientOrFatal(initConnectionTimeout time.Duration, clientParams util.ClientParameters) *ArgoClient

func (*ArgoClient) Workflow

func (argoClient *ArgoClient) Workflow(namespace string) argoprojv1alpha1.WorkflowInterface

type ArgoClientInterface

type ArgoClientInterface interface {
	Workflow(namespace string) argoprojv1alpha1.WorkflowInterface
}

type FakeArgoClient

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

func NewFakeArgoClient

func NewFakeArgoClient() *FakeArgoClient

func (*FakeArgoClient) GetWorkflowCount

func (c *FakeArgoClient) GetWorkflowCount() int

func (*FakeArgoClient) GetWorkflowKeys

func (c *FakeArgoClient) GetWorkflowKeys() map[string]bool

func (*FakeArgoClient) IsTerminated

func (c *FakeArgoClient) IsTerminated(name string) (bool, error)

func (*FakeArgoClient) Workflow

type FakeArgoClientWithBadWorkflow

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

func NewFakeArgoClientWithBadWorkflow

func NewFakeArgoClientWithBadWorkflow() *FakeArgoClientWithBadWorkflow

func (*FakeArgoClientWithBadWorkflow) Workflow

type FakeBadPodClient

type FakeBadPodClient struct {
	FakePodClient
}

func (FakeBadPodClient) Delete

func (FakeBadPodClient) Delete(ctx context.Context, name string, options v1.DeleteOptions) error

type FakeBadScheduledWorkflowClient

type FakeBadScheduledWorkflowClient struct {
	FakeScheduledWorkflowClient
}

func (FakeBadScheduledWorkflowClient) Create

func (*FakeBadScheduledWorkflowClient) Delete

func (FakeBadScheduledWorkflowClient) Get

func (FakeBadScheduledWorkflowClient) Patch

func (FakeBadScheduledWorkflowClient) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ScheduledWorkflow, err error)

type FakeBadWorkflowClient

type FakeBadWorkflowClient struct {
	FakeWorkflowClient
}

func (FakeBadWorkflowClient) Create

func (*FakeBadWorkflowClient) Delete

func (c *FakeBadWorkflowClient) Delete(ctx context.Context, name string, options v1.DeleteOptions) error

func (FakeBadWorkflowClient) Get

func (*FakeBadWorkflowClient) Update

type FakeKuberneteCoreClient

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

func NewFakeKuberneteCoresClient

func NewFakeKuberneteCoresClient() *FakeKuberneteCoreClient

func (*FakeKuberneteCoreClient) PodClient

func (c *FakeKuberneteCoreClient) PodClient(namespace string) v1.PodInterface

type FakeKubernetesCoreClientWithBadPodClient

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

func NewFakeKubernetesCoreClientWithBadPodClient

func NewFakeKubernetesCoreClientWithBadPodClient() *FakeKubernetesCoreClientWithBadPodClient

func (*FakeKubernetesCoreClientWithBadPodClient) PodClient

type FakePodClient

type FakePodClient struct {
}

func (FakePodClient) Bind

func (FakePodClient) Bind(ctx context.Context, binding *corev1.Binding, opts v1.CreateOptions) error

func (FakePodClient) Create

func (FakePodClient) Delete

func (FakePodClient) Delete(ctx context.Context, name string, options v1.DeleteOptions) error

func (FakePodClient) DeleteCollection

func (FakePodClient) DeleteCollection(ctx context.Context, options v1.DeleteOptions, listOptions v1.ListOptions) error

func (FakePodClient) Evict

func (FakePodClient) Evict(ctx context.Context, eviction *v1beta1.Eviction) error

func (FakePodClient) Get

func (FakePodClient) Get(ctx context.Context, name string, options v1.GetOptions) (*corev1.Pod, error)

func (FakePodClient) GetEphemeralContainers

func (FakePodClient) GetLogs

func (FakePodClient) GetLogs(name string, opts *corev1.PodLogOptions) *rest.Request

func (FakePodClient) List

func (FakePodClient) Patch

func (FakePodClient) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *corev1.Pod, err error)

func (FakePodClient) ProxyGet

func (FakePodClient) ProxyGet(scheme, name, port, path string, params map[string]string) rest.ResponseWrapper

func (FakePodClient) Update

func (FakePodClient) UpdateStatus

func (FakePodClient) Watch

type FakeScheduledWorkflowClient

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

func NewScheduledWorkflowClientFake

func NewScheduledWorkflowClientFake() *FakeScheduledWorkflowClient

func (*FakeScheduledWorkflowClient) Create

func (*FakeScheduledWorkflowClient) Delete

func (c *FakeScheduledWorkflowClient) Delete(ctx context.Context, name string, options *v1.DeleteOptions) error

func (*FakeScheduledWorkflowClient) DeleteCollection

func (c *FakeScheduledWorkflowClient) DeleteCollection(ctx context.Context, options *v1.DeleteOptions, listOptions v1.ListOptions) error

func (*FakeScheduledWorkflowClient) Get

func (*FakeScheduledWorkflowClient) List

func (*FakeScheduledWorkflowClient) Patch

func (c *FakeScheduledWorkflowClient) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ScheduledWorkflow, err error)

func (*FakeScheduledWorkflowClient) Update

func (*FakeScheduledWorkflowClient) Watch

type FakeSubjectAccessReviewClient

type FakeSubjectAccessReviewClient struct {
}

func NewFakeSubjectAccessReviewClient

func NewFakeSubjectAccessReviewClient() FakeSubjectAccessReviewClient

type FakeSubjectAccessReviewClientError

type FakeSubjectAccessReviewClientError struct {
}

func NewFakeSubjectAccessReviewClientError

func NewFakeSubjectAccessReviewClientError() FakeSubjectAccessReviewClientError

func (FakeSubjectAccessReviewClientError) Create

type FakeSubjectAccessReviewClientUnauthorized

type FakeSubjectAccessReviewClientUnauthorized struct {
}

func NewFakeSubjectAccessReviewClientUnauthorized

func NewFakeSubjectAccessReviewClientUnauthorized() FakeSubjectAccessReviewClientUnauthorized

type FakeSwfClient

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

func NewFakeSwfClient

func NewFakeSwfClient() *FakeSwfClient

func (*FakeSwfClient) ScheduledWorkflow

func (c *FakeSwfClient) ScheduledWorkflow(namespace string) v1beta1.ScheduledWorkflowInterface

type FakeSwfClientWithBadWorkflow

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

func NewFakeSwfClientWithBadWorkflow

func NewFakeSwfClientWithBadWorkflow() *FakeSwfClientWithBadWorkflow

func (*FakeSwfClientWithBadWorkflow) ScheduledWorkflow

type FakeTokenReviewClient

type FakeTokenReviewClient struct {
}

func NewFakeTokenReviewClient

func NewFakeTokenReviewClient() FakeTokenReviewClient

type FakeTokenReviewClientError

type FakeTokenReviewClientError struct {
}

func NewFakeTokenReviewClientError

func NewFakeTokenReviewClientError() FakeTokenReviewClientError

func (FakeTokenReviewClientError) Create

type FakeTokenReviewClientUnauthenticated

type FakeTokenReviewClientUnauthenticated struct {
}

func NewFakeTokenReviewClientUnauthenticated

func NewFakeTokenReviewClientUnauthenticated() FakeTokenReviewClientUnauthenticated

func (FakeTokenReviewClientUnauthenticated) Create

type FakeWorkflowClient

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

func NewWorkflowClientFake

func NewWorkflowClientFake() *FakeWorkflowClient

func (*FakeWorkflowClient) Create

func (*FakeWorkflowClient) Delete

func (c *FakeWorkflowClient) Delete(ctx context.Context, name string, options v1.DeleteOptions) error

func (*FakeWorkflowClient) DeleteCollection

func (c *FakeWorkflowClient) DeleteCollection(ctx context.Context, options v1.DeleteOptions,
	listOptions v1.ListOptions) error

func (*FakeWorkflowClient) Get

func (c *FakeWorkflowClient) Get(ctx context.Context, name string, options v1.GetOptions) (*v1alpha1.Workflow, error)

func (*FakeWorkflowClient) List

func (*FakeWorkflowClient) Patch

func (c *FakeWorkflowClient) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions,
	subresources ...string) (*v1alpha1.Workflow, error)

func (*FakeWorkflowClient) Update

func (*FakeWorkflowClient) Watch

type KubernetesCore

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

func (*KubernetesCore) PodClient

func (c *KubernetesCore) PodClient(namespace string) v1.PodInterface

type KubernetesCoreInterface

type KubernetesCoreInterface interface {
	PodClient(namespace string) v1.PodInterface
}

func CreateKubernetesCoreOrFatal

func CreateKubernetesCoreOrFatal(initConnectionTimeout time.Duration, clientParams util.ClientParameters) KubernetesCoreInterface

CreateKubernetesCoreOrFatal creates a new client for the Kubernetes pod.

type SubjectAccessReviewInterface

type SubjectAccessReviewInterface interface {
	Create(ctx context.Context, sar *authzv1.SubjectAccessReview, opts v1.CreateOptions) (result *authzv1.SubjectAccessReview, err error)
}

func CreateSubjectAccessReviewClientOrFatal

func CreateSubjectAccessReviewClientOrFatal(initConnectionTimeout time.Duration, clientParams util.ClientParameters) SubjectAccessReviewInterface

CreateSubjectAccessReviewClientOrFatal creates a new SubjectAccessReview client.

type SwfClient

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

func NewScheduledWorkflowClientOrFatal

func NewScheduledWorkflowClientOrFatal(initConnectionTimeout time.Duration, clientParams util.ClientParameters) *SwfClient

creates a new client for the Kubernetes ScheduledWorkflow CRD.

func (*SwfClient) ScheduledWorkflow

func (swfClient *SwfClient) ScheduledWorkflow(namespace string) v1beta1.ScheduledWorkflowInterface

type SwfClientInterface

type SwfClientInterface interface {
	ScheduledWorkflow(namespace string) v1beta1.ScheduledWorkflowInterface
}

type TokenReviewInterface

type TokenReviewInterface interface {
	Create(ctx context.Context, tokenReview *authv1.TokenReview, opts v1.CreateOptions) (result *authv1.TokenReview, err error)
}

func CreateTokenReviewClientOrFatal

func CreateTokenReviewClientOrFatal(initConnectionTimeout time.Duration, clientParams util.ClientParameters) TokenReviewInterface

CreateTokenReviewClientOrFatal creates a new TokenReview client.

Jump to

Keyboard shortcuts

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