Documentation
¶
Index ¶
- Constants
- Variables
- func Hash(name string) (string, error)
- func LocalObjects(path string, maxDepth int) ([]string, error)
- func Size(name string) (int, error)
- func Zip(name string) io.ReadCloser
- type Config
- type ConfigS3
- type ConfigTarget
- type Metadata
- type MetadataStore
- type ObjectToUpload
- type RunInput
- type RunOutput
Constants ¶
View Source
const ( DefaultMetadataStoreKey = "s3zip-metadata.pb" DefaultConcurrency = 10 )
Variables ¶
View Source
var File_proto_metadata_proto protoreflect.FileDescriptor
Functions ¶
func Hash ¶
Hash returns a hash of the given file or directory. This only uses the file size and name for performance.
func LocalObjects ¶
LocalObjects returns a list of relative paths to all files and directories. maxDepth is the maximum depth of recursion, 0 means no recursion.
Types ¶
type Config ¶
type Config struct { S3 ConfigS3 `yaml:"s3"` Metadata string `yaml:"metadata"` Targets []ConfigTarget `yaml:"targets"` }
func ReadConfig ¶
type ConfigTarget ¶
type Metadata ¶
type Metadata struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type MetadataStore ¶
type MetadataStore struct { Metadata map[string]*Metadata `` /* 143-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MetadataStore) Descriptor
deprecated
func (*MetadataStore) Descriptor() ([]byte, []int)
Deprecated: Use MetadataStore.ProtoReflect.Descriptor instead.
func (*MetadataStore) GetMetadata ¶
func (x *MetadataStore) GetMetadata() map[string]*Metadata
func (*MetadataStore) ProtoMessage ¶
func (*MetadataStore) ProtoMessage()
func (*MetadataStore) ProtoReflect ¶
func (x *MetadataStore) ProtoReflect() protoreflect.Message
func (*MetadataStore) Reset ¶
func (x *MetadataStore) Reset()
func (*MetadataStore) String ¶
func (x *MetadataStore) String() string
type ObjectToUpload ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.