Help us shape the future of Go! Take the 2026 Go Developer Survey

privateregistryclient

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatStatus added in v1.12.0

func FormatStatus(status OffchainWorkflowStatus) string

FormatStatus returns a short human-readable label for CLI output.

Types

type ActivateOffchainWorkflowRequest

type ActivateOffchainWorkflowRequest struct {
	WorkflowID string `json:"workflowId"`
}

type ActivateOffchainWorkflowResponse

type ActivateOffchainWorkflowResponse struct {
	Workflow OffchainWorkflow `json:"workflow"`
}

type Client

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

func New

func New(gql *graphqlclient.Client, log *zerolog.Logger) *Client

func (*Client) ActivateWorkflowInRegistry

func (c *Client) ActivateWorkflowInRegistry(ctx context.Context, workflowID string) (OffchainWorkflow, error)

func (*Client) CreateServiceContextWithTimeout

func (c *Client) CreateServiceContextWithTimeout(parent context.Context) (context.Context, context.CancelFunc)

func (*Client) DeleteWorkflowInRegistry

func (c *Client) DeleteWorkflowInRegistry(ctx context.Context, workflowID string) (string, error)

func (*Client) GetWorkflowByName

func (c *Client) GetWorkflowByName(ctx context.Context, workflowName string) (OffchainWorkflow, error)

func (*Client) PauseWorkflowInRegistry

func (c *Client) PauseWorkflowInRegistry(ctx context.Context, workflowID string) (OffchainWorkflow, error)

func (*Client) SetServiceTimeout

func (c *Client) SetServiceTimeout(timeout time.Duration)

func (*Client) UpsertWorkflowInRegistry

func (c *Client) UpsertWorkflowInRegistry(ctx context.Context, workflow OffchainWorkflowInput) (OffchainWorkflow, error)

type DeleteOffchainWorkflowRequest

type DeleteOffchainWorkflowRequest struct {
	WorkflowID string `json:"workflowId"`
}

type DeleteOffchainWorkflowResponse

type DeleteOffchainWorkflowResponse struct {
	WorkflowID string `json:"workflowId"`
}

type GetOffchainWorkflowByNameRequest

type GetOffchainWorkflowByNameRequest struct {
	WorkflowName string `json:"workflowName"`
}

type GetOffchainWorkflowByNameResponse

type GetOffchainWorkflowByNameResponse struct {
	Workflow OffchainWorkflow `json:"workflow"`
}

type OffchainWorkflow

type OffchainWorkflow struct {
	WorkflowID     string                 `json:"workflowId"`
	Owner          string                 `json:"owner"`
	CreatedAt      string                 `json:"createdAt"`
	Status         OffchainWorkflowStatus `json:"status"`
	WorkflowName   string                 `json:"workflowName"`
	BinaryURL      string                 `json:"binaryUrl"`
	ConfigURL      string                 `json:"configUrl"`
	Tag            string                 `json:"tag"`
	Attributes     string                 `json:"attributes"`
	DonFamily      string                 `json:"donFamily"`
	OrganizationID string                 `json:"organizationId"`
}

type OffchainWorkflowInput

type OffchainWorkflowInput struct {
	WorkflowID   string                 `json:"workflowId"`
	Status       OffchainWorkflowStatus `json:"status"`
	WorkflowName string                 `json:"workflowName"`
	BinaryURL    string                 `json:"binaryUrl"`
	ConfigURL    *string                `json:"configUrl,omitempty"`
	Tag          *string                `json:"tag,omitempty"`
	Attributes   *string                `json:"attributes,omitempty"`
	DonFamily    string                 `json:"donFamily"`
}

type OffchainWorkflowStatus

type OffchainWorkflowStatus string
const (
	WorkflowStatusUnspecified OffchainWorkflowStatus = "WORKFLOW_STATUS_UNSPECIFIED"
	WorkflowStatusActive      OffchainWorkflowStatus = "WORKFLOW_STATUS_ACTIVE"
	WorkflowStatusPaused      OffchainWorkflowStatus = "WORKFLOW_STATUS_PAUSED"
)

type PauseOffchainWorkflowRequest

type PauseOffchainWorkflowRequest struct {
	WorkflowID string `json:"workflowId"`
}

type PauseOffchainWorkflowResponse

type PauseOffchainWorkflowResponse struct {
	Workflow OffchainWorkflow `json:"workflow"`
}

type UpsertOffchainWorkflowRequest

type UpsertOffchainWorkflowRequest struct {
	Workflow OffchainWorkflowInput `json:"workflow"`
}

type UpsertOffchainWorkflowResponse

type UpsertOffchainWorkflowResponse struct {
	Workflow OffchainWorkflow `json:"workflow"`
}

Jump to

Keyboard shortcuts

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