Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Persist ¶
type Persist struct { EndpointURL string BucketName string Prefix string // contains filtered or unexported fields }
Persist implements the mast.Persist interface for storing and loading nodes from files.
func NewPersist ¶
func NewPersist(client S3Interface, endpointURL, bucketName, prefix string) Persist
NewPersist returns a Persist that loads and stores nodes as objects with the given S3 client and bucket name.
func (Persist) NodeURLPrefix ¶
type S3Interface ¶
type S3Interface interface { DeleteObjectWithContext(ctx aws.Context, input *s3.DeleteObjectInput, opts ...request.Option) (*s3.DeleteObjectOutput, error) GetObjectWithContext(ctx aws.Context, input *s3.GetObjectInput, opts ...request.Option) (*s3.GetObjectOutput, error) PutObjectWithContext(ctx aws.Context, input *s3.PutObjectInput, opts ...request.Option) (*s3.PutObjectOutput, error) }
Click to show internal directories.
Click to hide internal directories.