apiclient

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxGRPCMessageSize contains max grpc message size supported by the client
	MaxClientGRPCMessageSize = 100 * 1024 * 1024
)

Variables

View Source
var NoArgoServerErr = fmt.Errorf("this is impossible if you are not using the Argo Server, see " + help.CLI)

Functions

This section is empty.

Types

type ArgoServerOpts

type ArgoServerOpts struct {
	// argo server URL
	URL                        string
	Secure, InsecureSkipVerify bool
}

type Client

type Client interface {
	NewArchivedWorkflowServiceClient() (workflowarchivepkg.ArchivedWorkflowServiceClient, error)
	NewWorkflowServiceClient() workflowpkg.WorkflowServiceClient
	NewCronWorkflowServiceClient() cronworkflowpkg.CronWorkflowServiceClient
	NewWorkflowTemplateServiceClient() workflowtemplatepkg.WorkflowTemplateServiceClient
	NewClusterWorkflowTemplateServiceClient() clusterworkflowtmplpkg.ClusterWorkflowTemplateServiceClient
	NewInfoServiceClient() (infopkg.InfoServiceClient, error)
}

func NewClient

func NewClient(argoServer string, authSupplier func() string, clientConfig clientcmd.ClientConfig) (context.Context, Client, error)

DEPRECATED: use NewClientFromOpts

func NewClientFromOpts

func NewClientFromOpts(opts Opts) (context.Context, Client, error)

type Opts

type Opts struct {
	ArgoServerOpts ArgoServerOpts
	InstanceID     string
	AuthSupplier   func() string
	// DEPRECATED: use `ClientConfigSupplier`
	ClientConfig         clientcmd.ClientConfig
	ClientConfigSupplier func() clientcmd.ClientConfig
}

Directories

Path Synopsis
Package clusterworkflowtemplate is a reverse proxy.
Package clusterworkflowtemplate is a reverse proxy.
Package cronworkflow is a reverse proxy.
Package cronworkflow is a reverse proxy.
Package event is a reverse proxy.
Package event is a reverse proxy.
Package info is a reverse proxy.
Package info is a reverse proxy.
Package workflow is a reverse proxy.
Package workflow is a reverse proxy.
Package workflowarchive is a reverse proxy.
Package workflowarchive is a reverse proxy.
Package workflowtemplate is a reverse proxy.
Package workflowtemplate is a reverse proxy.

Jump to

Keyboard shortcuts

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