Documentation ¶
Index ¶
Constants ¶
View Source
const ( SignatureHeaderKey = "cypress-signature" SignatureHeader = "x-amz-meta-" + SignatureHeaderKey )
Variables ¶
View Source
var ( ErrInvalidS3ACL = errors.New("invalid s3 ACL") ErrInvalidAWSRegion = errors.New("invalid AWS region") )
Functions ¶
This section is empty.
Types ¶
type Recv ¶
type Recv struct { Dir string `short:"d" long:"dir" description:"directory to use for intermediate data"` AccessKey string `short:"a" long:"access" description:"AWS access key"` SecretKey string `short:"s" long:"secret" description:"AWS secret key"` Bucket string `short:"b" long:"bucket" description:"bucket to store data in"` Region string `short:"r" long:"region" description:"AWS region to use"` }
type S3 ¶
func NewS3WithSpool ¶
func (*S3) CurrentFile ¶
func (*S3) SignWith ¶
func (s *S3) SignWith(k *ecdsa.PrivateKey)
type S3Generator ¶
type S3Generator struct { Keys keystore.Keys // Indicates if we should process any unsigned logs seen AllowUnsigned bool // contains filtered or unexported fields }
func NewS3Generator ¶
func (*S3Generator) Close ¶
func (g *S3Generator) Close() error
func (*S3Generator) LastSignature ¶
func (g *S3Generator) LastSignature() *S3Signature
func (*S3Generator) List ¶
func (g *S3Generator) List() *s3.ListResp
type S3Plugin ¶
type S3Plugin struct { Dir string `description:"directory to store intermediate data in"` AccessKey string `description:"AWS access key"` SecretKey string `description:"AWS secret key"` Bucket string `description:"S3 bucket + path to store streams in"` ACL string `description:"S3 ACL of data written (output only)"` Region string `description:"AWS region to use"` }
func (*S3Plugin) Description ¶
type S3Signature ¶
type S3Signature struct { Keys keystore.Keys `json:"-"` KeyID string `json:"key_id"` R *big.Int `json:"r"` S *big.Int `json:"s"` }
func (*S3Signature) ValidateETag ¶
func (sig *S3Signature) ValidateETag(resp *http.Response) error
type Send ¶
type Send struct { Dir string `short:"d" long:"dir" description:"directory to use for intermediate data"` AccessKey string `short:"a" long:"access" description:"AWS access key"` SecretKey string `short:"s" long:"secret" description:"AWS secret key"` Bucket string `short:"b" long:"bucket" description:"bucket to store data in"` ACL string `long:"acl" description:"ACL to apply to data"` Region string `short:"r" long:"region" description:"AWS region to use"` }
Click to show internal directories.
Click to hide internal directories.