apiclient

package
v3.4.8 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 38 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)
)
View Source
var OfflineErr = fmt.Errorf("not supported when you are in offline mode")

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
	Headers []string
}

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, error)
	NewWorkflowTemplateServiceClient() (workflowtemplatepkg.WorkflowTemplateServiceClient, error)
	NewClusterWorkflowTemplateServiceClient() (clusterworkflowtmplpkg.ClusterWorkflowTemplateServiceClient, error)
	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 OfflineClusterWorkflowTemplateServiceClient added in v3.4.7

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

func (OfflineClusterWorkflowTemplateServiceClient) CreateClusterWorkflowTemplate added in v3.4.7

func (OfflineClusterWorkflowTemplateServiceClient) GetClusterWorkflowTemplate added in v3.4.7

func (OfflineClusterWorkflowTemplateServiceClient) LintClusterWorkflowTemplate added in v3.4.7

func (OfflineClusterWorkflowTemplateServiceClient) ListClusterWorkflowTemplates added in v3.4.7

func (OfflineClusterWorkflowTemplateServiceClient) UpdateClusterWorkflowTemplate added in v3.4.7

type OfflineCronWorkflowServiceClient added in v3.4.7

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

func (OfflineCronWorkflowServiceClient) CreateCronWorkflow added in v3.4.7

func (OfflineCronWorkflowServiceClient) DeleteCronWorkflow added in v3.4.7

func (OfflineCronWorkflowServiceClient) GetCronWorkflow added in v3.4.7

func (OfflineCronWorkflowServiceClient) LintCronWorkflow added in v3.4.7

func (OfflineCronWorkflowServiceClient) ListCronWorkflows added in v3.4.7

func (OfflineCronWorkflowServiceClient) ResumeCronWorkflow added in v3.4.7

func (OfflineCronWorkflowServiceClient) SuspendCronWorkflow added in v3.4.7

func (OfflineCronWorkflowServiceClient) UpdateCronWorkflow added in v3.4.7

type OfflineWorkflowServiceClient added in v3.1.0

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

func (OfflineWorkflowServiceClient) CreateWorkflow added in v3.1.0

func (OfflineWorkflowServiceClient) DeleteWorkflow added in v3.1.0

func (OfflineWorkflowServiceClient) GetWorkflow added in v3.1.0

func (OfflineWorkflowServiceClient) LintWorkflow added in v3.1.0

func (OfflineWorkflowServiceClient) ListWorkflows added in v3.1.0

func (OfflineWorkflowServiceClient) ResubmitWorkflow added in v3.1.0

func (OfflineWorkflowServiceClient) ResumeWorkflow added in v3.1.0

func (OfflineWorkflowServiceClient) RetryWorkflow added in v3.1.0

func (OfflineWorkflowServiceClient) SetWorkflow added in v3.1.0

func (OfflineWorkflowServiceClient) StopWorkflow added in v3.1.0

func (OfflineWorkflowServiceClient) SubmitWorkflow added in v3.1.0

func (OfflineWorkflowServiceClient) SuspendWorkflow added in v3.1.0

func (OfflineWorkflowServiceClient) TerminateWorkflow added in v3.1.0

type OfflineWorkflowTemplateServiceClient added in v3.4.7

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

func (OfflineWorkflowTemplateServiceClient) CreateWorkflowTemplate added in v3.4.7

func (OfflineWorkflowTemplateServiceClient) GetWorkflowTemplate added in v3.4.7

func (OfflineWorkflowTemplateServiceClient) LintWorkflowTemplate added in v3.4.7

func (OfflineWorkflowTemplateServiceClient) ListWorkflowTemplates added in v3.4.7

func (OfflineWorkflowTemplateServiceClient) UpdateWorkflowTemplate added in v3.4.7

type Opts

type Opts struct {
	ArgoServerOpts ArgoServerOpts
	InstanceID     string
	AuthSupplier   func() string
	// DEPRECATED: use `ClientConfigSupplier`
	ClientConfig         clientcmd.ClientConfig
	ClientConfigSupplier func() clientcmd.ClientConfig
	Offline              bool
	OfflineFiles         []string
	Context              context.Context
}

func (*Opts) GetContext added in v3.2.0

func (o *Opts) GetContext() context.Context

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