Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(s *Storage)
Option represents the Cloudfront storage options
func WithCloudfrontHost ¶
WithCloudfrontHost sets the cloudfront host, can end with trailing slash or not
func WithHeimdallClient ¶
WithHeimdallClient sets the client
func WithSecureProtocol ¶
func WithSecureProtocol() Option
WithSecureProtocol uses https while making requests with the client
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage holds the fields used by cloudfront storage implementation
func NewStorage ¶
NewStorage returns a new cloudfront.Storage instance
func (*Storage) Get ¶
Get takes in the Context and path as an argument and returns an IResponse interface implementation. This method figures out how to get the data from the cloudfront storage backend.
func (*Storage) GetPartially ¶ added in v0.1.0
func (s *Storage) GetPartially(ctx context.Context, path string, opt *storage.GetPartiallyRequestOptions) storage.IResponse
GetPartially takes in the Context, path and opt as an argument and returns an IResponse interface implementation. This method figures out how to get partial data from the cloudfront storage backend.