Documentation ¶
Overview ¶
Package source provides source code management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { // Has returns true if the source storage has a file with a certain name. Has(ctx context.Context, filename string) (bool, error) // Get returns the given file from storage. The caller is responsible for // closing the file when done. Get(ctx context.Context, filename string) (io.ReadCloser, error) // NewUpload creates a new url that will accept uploads. NewUpload(cfg UploadConfig) (*UploadURL, error) }
Storage provides source code storage.
type UploadConfig ¶
UploadConfig is the configuration to pass to NewUpload when creating a new upload url.
Click to show internal directories.
Click to hide internal directories.