storageclient

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactType

type ArtifactType string
const (
	ArtifactTypeBinary ArtifactType = "BINARY"
	ArtifactTypeConfig ArtifactType = "CONFIG"
)

type Client

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

func New

func New(graphql *graphqlclient.Client, workflowRegistryAddress string, workflowOwnerAddress string, chainSelector uint64, log *zerolog.Logger) *Client

func (*Client) CreateHttpContextWithTimeout

func (c *Client) CreateHttpContextWithTimeout() (context.Context, context.CancelFunc)

func (*Client) CreateServiceContextWithTimeout

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

func (*Client) GeneratePostUrlForArtifact

func (c *Client) GeneratePostUrlForArtifact(workflowId string, artifactType ArtifactType, content []byte) (GeneratePresignedPostUrlForArtifactResponse, error)

func (*Client) GenerateUnsignedGetUrlForArtifact

func (c *Client) GenerateUnsignedGetUrlForArtifact(workflowId string, artifactType ArtifactType) (GenerateUnsignedGetUrlForArtifactResponse, error)

func (*Client) SetHTTPTimeout

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

func (*Client) SetServiceTimeout

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

func (*Client) UploadArtifactWithRetriesAndGetURL

func (c *Client) UploadArtifactWithRetriesAndGetURL(
	workflowID string,
	artifactType ArtifactType,
	content []byte,
	contentType string) (GenerateUnsignedGetUrlForArtifactResponse, error)

func (*Client) UploadToOrigin

func (c *Client) UploadToOrigin(g GeneratePresignedPostUrlForArtifactResponse, content []byte, contentType string) error

type DeleteArtifactResponse

type DeleteArtifactResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

type GeneratePresignedPostUrlForArtifactResponse

type GeneratePresignedPostUrlForArtifactResponse struct {
	PresignedPostURL    string `json:"presignedPostUrl"`
	PresignedPostFields []struct {
		Key   string `json:"key"`
		Value string `json:"value"`
	} `json:"presignedPostFields"`
}

type GenerateUnsignedGetUrlForArtifactResponse

type GenerateUnsignedGetUrlForArtifactResponse struct {
	UnsignedGetUrl string `json:"unsignedGetUrl"`
}

Jump to

Keyboard shortcuts

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