server

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeLayout = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func GenApiWorkflowExecution

func GenApiWorkflowExecution(wf *v1.WorkflowExecution) (workflow *api.WorkflowExecution)

Types

type AuthServer

type AuthServer struct{}

func NewAuthServer

func NewAuthServer() *AuthServer

func (*AuthServer) IsAuthorized added in v0.8.0

func (a *AuthServer) IsAuthorized(ctx context.Context, request *api.IsAuthorizedRequest) (res *api.IsAuthorizedResponse, err error)

func (*AuthServer) IsValidToken

func (a *AuthServer) IsValidToken(ctx context.Context, req *api.IsValidTokenRequest) (res *api.IsValidTokenResponse, err error)

func (*AuthServer) IsWorkspaceAuthenticated

func (a *AuthServer) IsWorkspaceAuthenticated(ctx context.Context, request *api.IsWorkspaceAuthenticatedRequest) (*empty.Empty, error)

type CronWorkflowServer

type CronWorkflowServer struct{}

func NewCronWorkflowServer

func NewCronWorkflowServer() *CronWorkflowServer

func (*CronWorkflowServer) CreateCronWorkflow

func (*CronWorkflowServer) DeleteCronWorkflow added in v0.8.0

func (c *CronWorkflowServer) DeleteCronWorkflow(ctx context.Context, req *api.DeleteCronWorkflowRequest) (*empty.Empty, error)

func (*CronWorkflowServer) GetCronWorkflow

func (*CronWorkflowServer) ListCronWorkflows

func (*CronWorkflowServer) UpdateCronWorkflow

type LabelServer

type LabelServer struct{}

func NewLabelServer

func NewLabelServer() *LabelServer

func (*LabelServer) AddLabels

func (*LabelServer) DeleteLabel

func (*LabelServer) GetLabels

func (*LabelServer) ReplaceLabels

type NamespaceServer

type NamespaceServer struct{}

func NewNamespaceServer

func NewNamespaceServer() *NamespaceServer

func (*NamespaceServer) CreateNamespace

func (s *NamespaceServer) CreateNamespace(ctx context.Context, createNamespace *api.CreateNamespaceRequest) (*api.Namespace, error)

func (*NamespaceServer) ListNamespaces

type SecretServer

type SecretServer struct{}

func NewSecretServer

func NewSecretServer() *SecretServer

func (*SecretServer) AddSecretKeyValue

func (s *SecretServer) AddSecretKeyValue(ctx context.Context, req *api.AddSecretKeyValueRequest) (updated *api.AddSecretKeyValueResponse, err error)

func (*SecretServer) CreateSecret

func (s *SecretServer) CreateSecret(ctx context.Context, req *api.CreateSecretRequest) (*empty.Empty, error)

func (*SecretServer) DeleteSecret

func (s *SecretServer) DeleteSecret(ctx context.Context, req *api.DeleteSecretRequest) (deleted *api.DeleteSecretResponse, err error)

func (*SecretServer) DeleteSecretKey

func (s *SecretServer) DeleteSecretKey(ctx context.Context, req *api.DeleteSecretKeyRequest) (deleted *api.DeleteSecretKeyResponse, err error)

func (*SecretServer) GetSecret

func (s *SecretServer) GetSecret(ctx context.Context, req *api.GetSecretRequest) (*api.Secret, error)

func (*SecretServer) ListSecrets

func (*SecretServer) SecretExists

func (s *SecretServer) SecretExists(ctx context.Context, req *api.SecretExistsRequest) (secretExists *api.SecretExistsResponse, err error)

func (*SecretServer) UpdateSecretKeyValue

func (s *SecretServer) UpdateSecretKeyValue(ctx context.Context, req *api.UpdateSecretKeyValueRequest) (updated *api.UpdateSecretKeyValueResponse, err error)

type WorkflowServer

type WorkflowServer struct{}

func NewWorkflowServer

func NewWorkflowServer() *WorkflowServer

func (*WorkflowServer) AddWorkflowExecutionStatistics

func (s *WorkflowServer) AddWorkflowExecutionStatistics(ctx context.Context, req *api.AddWorkflowExecutionStatisticRequest) (*empty.Empty, error)

func (*WorkflowServer) CloneWorkflowExecution

func (s *WorkflowServer) CloneWorkflowExecution(ctx context.Context, req *api.CloneWorkflowExecutionRequest) (*api.WorkflowExecution, error)

func (*WorkflowServer) CreateWorkflowExecution

func (s *WorkflowServer) CreateWorkflowExecution(ctx context.Context, req *api.CreateWorkflowExecutionRequest) (*api.WorkflowExecution, error)

func (*WorkflowServer) CronStartWorkflowExecutionStatistic

func (s *WorkflowServer) CronStartWorkflowExecutionStatistic(ctx context.Context, req *api.CronStartWorkflowExecutionStatisticRequest) (*empty.Empty, error)

@todo we should not pass in an id into the request. instead pass in the cron workflow uid, we can load the cron workflow from db that way and get all required data.

func (*WorkflowServer) GetArtifact

func (*WorkflowServer) GetWorkflowExecution

func (*WorkflowServer) ListFiles

func (*WorkflowServer) ListWorkflowExecutions

func (*WorkflowServer) ResubmitWorkflowExecution

func (s *WorkflowServer) ResubmitWorkflowExecution(ctx context.Context, req *api.ResubmitWorkflowExecutionRequest) (*api.WorkflowExecution, error)

func (*WorkflowServer) TerminateWorkflowExecution

func (s *WorkflowServer) TerminateWorkflowExecution(ctx context.Context, req *api.TerminateWorkflowExecutionRequest) (*empty.Empty, error)

func (*WorkflowServer) UpdateWorkflowExecutionStatus added in v0.8.0

func (s *WorkflowServer) UpdateWorkflowExecutionStatus(ctx context.Context, req *api.UpdateWorkflowExecutionStatusRequest) (*empty.Empty, error)

type WorkflowTemplateServer

type WorkflowTemplateServer struct{}

func NewWorkflowTemplateServer

func NewWorkflowTemplateServer() *WorkflowTemplateServer

func (*WorkflowTemplateServer) ArchiveWorkflowTemplate

func (*WorkflowTemplateServer) CloneWorkflowTemplate

func (*WorkflowTemplateServer) CreateWorkflowTemplate

func (*WorkflowTemplateServer) CreateWorkflowTemplateVersion

func (s *WorkflowTemplateServer) CreateWorkflowTemplateVersion(ctx context.Context, req *api.CreateWorkflowTemplateRequest) (*api.WorkflowTemplate, error)

func (*WorkflowTemplateServer) GetWorkflowTemplate

func (*WorkflowTemplateServer) ListWorkflowTemplates

func (*WorkflowTemplateServer) UpdateWorkflowTemplateVersion

type WorkspaceServer

type WorkspaceServer struct{}

func NewWorkspaceServer

func NewWorkspaceServer() *WorkspaceServer

func (*WorkspaceServer) CreateWorkspace

func (s *WorkspaceServer) CreateWorkspace(ctx context.Context, req *api.CreateWorkspaceRequest) (*api.Workspace, error)

func (*WorkspaceServer) DeleteWorkspace

func (s *WorkspaceServer) DeleteWorkspace(ctx context.Context, req *api.DeleteWorkspaceRequest) (*empty.Empty, error)

func (*WorkspaceServer) GetWorkspace added in v0.8.0

func (s *WorkspaceServer) GetWorkspace(ctx context.Context, req *api.GetWorkspaceRequest) (*api.Workspace, error)

func (*WorkspaceServer) ListWorkspaces

func (*WorkspaceServer) PauseWorkspace

func (s *WorkspaceServer) PauseWorkspace(ctx context.Context, req *api.PauseWorkspaceRequest) (*empty.Empty, error)

func (*WorkspaceServer) ResumeWorkspace added in v0.8.0

func (s *WorkspaceServer) ResumeWorkspace(ctx context.Context, req *api.ResumeWorkspaceRequest) (*empty.Empty, error)

func (*WorkspaceServer) UpdateWorkspace added in v0.8.0

func (s *WorkspaceServer) UpdateWorkspace(ctx context.Context, req *api.UpdateWorkspaceRequest) (*empty.Empty, error)

func (*WorkspaceServer) UpdateWorkspaceStatus

func (s *WorkspaceServer) UpdateWorkspaceStatus(ctx context.Context, req *api.UpdateWorkspaceStatusRequest) (*empty.Empty, error)

type WorkspaceTemplateServer

type WorkspaceTemplateServer struct{}

func NewWorkspaceTemplateServer

func NewWorkspaceTemplateServer() *WorkspaceTemplateServer

func (*WorkspaceTemplateServer) ArchiveWorkspaceTemplate added in v0.8.0

func (*WorkspaceTemplateServer) CreateWorkspaceTemplate

func (WorkspaceTemplateServer) GenerateWorkspaceTemplateWorkflowTemplate

func (s WorkspaceTemplateServer) GenerateWorkspaceTemplateWorkflowTemplate(ctx context.Context, req *api.GenerateWorkspaceTemplateWorkflowTemplateRequest) (*api.WorkflowTemplate, error)

func (*WorkspaceTemplateServer) GetWorkspaceTemplate

func (*WorkspaceTemplateServer) ListWorkspaceTemplates

func (*WorkspaceTemplateServer) UpdateWorkspaceTemplate

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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