Documentation
¶
Index ¶
- type ArtifactType
- type Client
- func (c *Client) CreateHttpContextWithTimeout() (context.Context, context.CancelFunc)
- func (c *Client) CreateServiceContextWithTimeout() (context.Context, context.CancelFunc)
- func (c *Client) GeneratePostUrlForArtifact(workflowId string, artifactType ArtifactType, content []byte) (GeneratePresignedPostUrlForArtifactResponse, error)
- func (c *Client) GenerateUnsignedGetUrlForArtifact(workflowId string, artifactType ArtifactType) (GenerateUnsignedGetUrlForArtifactResponse, error)
- func (c *Client) SetHTTPTimeout(timeout time.Duration)
- func (c *Client) SetServiceTimeout(timeout time.Duration)
- func (c *Client) UploadArtifactWithRetriesAndGetURL(workflowID string, artifactType ArtifactType, content []byte, ...) (GenerateUnsignedGetUrlForArtifactResponse, error)
- func (c *Client) UploadToOrigin(g GeneratePresignedPostUrlForArtifactResponse, content []byte, ...) error
- type DeleteArtifactResponse
- type GeneratePresignedPostUrlForArtifactResponse
- type GenerateUnsignedGetUrlForArtifactResponse
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 (*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 (*Client) SetServiceTimeout ¶
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 GenerateUnsignedGetUrlForArtifactResponse ¶
type GenerateUnsignedGetUrlForArtifactResponse struct {
UnsignedGetUrl string `json:"unsignedGetUrl"`
}
Click to show internal directories.
Click to hide internal directories.