apiclient

package
v3.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 32 Imported by: 12

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 host port, must be `host:port`, e.g. localhost:2746
	URL string
	// any base path needed (e.g. due to being behind an ingress)
	Path               string
	Secure             bool
	InsecureSkipVerify bool
	// whether or not to use HTTP1
	HTTP1 bool
}

func (ArgoServerOpts) GetURL

func (o ArgoServerOpts) GetURL() string

func (ArgoServerOpts) String

func (o ArgoServerOpts) String() string

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
}

func (Opts) String

func (o Opts) String() string

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 eventsource is a reverse proxy.
Package eventsource is a reverse proxy.
Package info is a reverse proxy.
Package info is a reverse proxy.
Package sensor is a reverse proxy.
Package sensor 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