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

storageclient

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 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, workflowOwnerAddress string, log *zerolog.Logger) *Client

func (*Client) CreateHttpContextWithTimeout

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

func (*Client) CreateServiceContextWithTimeout

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

func (*Client) GeneratePostUrlForArtifact

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

func (*Client) GenerateUnsignedGetUrlForArtifact

func (c *Client) GenerateUnsignedGetUrlForArtifact(ctx context.Context, 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(
	ctx context.Context,
	workflowID string,
	artifactType ArtifactType,
	content []byte,
	contentType string) (GenerateUnsignedGetUrlForArtifactResponse, error)

func (*Client) UploadToOrigin

func (c *Client) UploadToOrigin(ctx context.Context, 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