storageclient

package
v0.7.2-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 14 Imported by: 0

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