Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrGitHubAPIError = errors.New("github api error") ErrInvalidGitHubSlug = errors.New("repo slug is invalid") ErrUnknownGitHubRelease = errors.New("github release does not exist") ErrUnknownGitHubReleaseAsset = errors.New("github release does not contain asset") )
View Source
var ( ErrUnsupported = errors.New("unsupported") ErrHTTPStatusCode = errors.New("received a non-200 http status code") )
Functions ¶
This section is empty.
Types ¶
type CommonConfig ¶
type CommonConfig struct { ArchivePathTemplate string `json:"archive_path_template"` Mappings TemplateMappings `json:"template_mappings"` }
type FileSystem ¶
type FileSystem struct { FileSystemConfig // contains filtered or unexported fields }
func NewFileSystem ¶
func NewFileSystem(logBuilder logger.Builder, c *FileSystemConfig) *FileSystem
type FileSystemConfig ¶
type FileSystemConfig struct { CommonConfig FilePathTemplate string `json:"file_path_template"` }
func (FileSystemConfig) String ¶
func (c FileSystemConfig) String() string
type GCSConfig ¶
type GCSConfig struct { CommonConfig GCSBucket string `json:"gcs_bucket"` GCSPathTemplate string `json:"gcs_path_template"` }
type GitHub ¶
type GitHub struct { GitHubConfig // contains filtered or unexported fields }
type GitHubConfig ¶
type GitHubConfig struct { CommonConfig GitHubSlug string `json:"github_slug"` GitHubReleaseAssetTemplate string `json:"github_release_asset_template"` GitHubBaseURL string `json:"github_base_url"` }
func (GitHubConfig) String ¶
func (c GitHubConfig) String() string
type HTTPS ¶
type HTTPS struct { HTTPSConfig // contains filtered or unexported fields }
type HTTPSConfig ¶
type HTTPSConfig struct { CommonConfig HTTPSURLTemplate string `json:"https_url_template"` }
func (HTTPSConfig) String ¶
func (c HTTPSConfig) String() string
type S3Config ¶
type S3Config struct { CommonConfig S3Bucket string `json:"s3_bucket"` S3PathTemplate string `json:"s3_path_template"` }
type TemplateMappings ¶
Click to show internal directories.
Click to hide internal directories.