Documentation ¶
Index ¶
- Constants
- Variables
- type Archive
- type Config
- type ConfigContents
- type ConfigContentsDirectory
- type ConfigContentsGit
- type ConfigContentsGithubRelease
- type ConfigContentsManual
- type ConfigContentsUnpackArchive
- type Directory
- type FileFilter
- type Git
- type GitInfo
- type GitSync
- type GithubReleaseAPI
- type GithubReleaseAssetAPI
- type GithubReleaseSync
- type InfoLog
- type LockConfig
- type LockConfigContents
- type LockConfigContentsDirectory
- type LockConfigContentsGit
- type LockConfigContentsGithubRelease
- type LockConfigContentsManual
- type ReleaseNotesChecksums
- type SyncOpts
Constants ¶
View Source
const (
EntireDirPath = "."
)
Variables ¶
View Source
var (
DefaultLegalPaths = []string{
"{LICENSE,LICENCE,License,Licence}{,.md,.txt,.rst}",
"{COPYRIGHT,Copyright}{,.md,.txt,.rst}",
"{NOTICE,Notice}{,.md,.txt,.rst}",
}
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Path string `json:"path"` Contents []ConfigContents `json:"contents,omitempty"` }
type ConfigContents ¶
type ConfigContents struct { Path string `json:"path"` Git *ConfigContentsGit `json:"git,omitempty"` GithubRelease *ConfigContentsGithubRelease `json:"githubRelease,omitempty"` Manual *ConfigContentsManual `json:"manual,omitempty"` Directory *ConfigContentsDirectory `json:"directory,omitempty"` IncludePaths []string `json:"includePaths,omitempty"` ExcludePaths []string `json:"excludePaths,omitempty"` // By default LICENSE/LICENCE/NOTICE/COPYRIGHT files are kept LegalPaths []string `json:"legalPaths,omitempty"` }
func (ConfigContents) IsEntireDir ¶ added in v0.4.0
func (c ConfigContents) IsEntireDir() bool
func (ConfigContents) LegalPathsWithDefaults ¶
func (c ConfigContents) LegalPathsWithDefaults() []string
func (ConfigContents) Lock ¶ added in v0.8.0
func (c ConfigContents) Lock(lockConfig LockConfigContents) error
func (ConfigContents) Validate ¶ added in v0.4.0
func (c ConfigContents) Validate() error
type ConfigContentsDirectory ¶
type ConfigContentsDirectory struct {
Path string `json:"path"`
}
type ConfigContentsGit ¶
func (*ConfigContentsGit) Lock ¶ added in v0.8.0
func (c *ConfigContentsGit) Lock(lockConfig *LockConfigContentsGit) error
type ConfigContentsGithubRelease ¶ added in v0.6.0
type ConfigContentsGithubRelease struct { Slug string `json:"slug"` // e.g. organization/repository Tag string `json:"tag"` Latest bool `json:"latest,omitempty"` URL string `json:"url,omitempty"` Checksums map[string]string `json:"checksums,omitempty"` DisableAutoChecksumValidation bool `json:"disableAutoChecksumValidation,omitempty"` UnpackArchive *ConfigContentsUnpackArchive `json:"unpackArchive,omitempty"` }
func (*ConfigContentsGithubRelease) Lock ¶ added in v0.8.0
func (c *ConfigContentsGithubRelease) Lock(lockConfig *LockConfigContentsGithubRelease) error
type ConfigContentsManual ¶
type ConfigContentsManual struct{}
type ConfigContentsUnpackArchive ¶ added in v0.6.0
type ConfigContentsUnpackArchive struct {
Path string `json:"path"`
}
type FileFilter ¶ added in v0.6.0
type FileFilter struct {
// contains filtered or unexported fields
}
func (FileFilter) Apply ¶ added in v0.6.0
func (d FileFilter) Apply(dirPath string) error
type GithubReleaseAPI ¶ added in v0.6.0
type GithubReleaseAPI struct { URL string `json:"url"` Body string Assets []GithubReleaseAssetAPI }
func (GithubReleaseAPI) AssetNames ¶ added in v0.6.0
func (a GithubReleaseAPI) AssetNames() []string
type GithubReleaseAssetAPI ¶ added in v0.6.0
type GithubReleaseSync ¶ added in v0.6.0
type GithubReleaseSync struct {
// contains filtered or unexported fields
}
func (GithubReleaseSync) DescAndURL ¶ added in v0.8.0
func (d GithubReleaseSync) DescAndURL() (string, string, error)
func (GithubReleaseSync) Sync ¶ added in v0.6.0
func (d GithubReleaseSync) Sync(dstPath string) (LockConfigContentsGithubRelease, error)
type InfoLog ¶ added in v0.3.0
type InfoLog struct {
// contains filtered or unexported fields
}
func NewInfoLog ¶ added in v0.3.0
type LockConfig ¶
type LockConfig struct { Path string `json:"path"` Contents []LockConfigContents `json:"contents"` }
type LockConfigContents ¶
type LockConfigContents struct { Path string `json:"path"` Git *LockConfigContentsGit `json:"git,omitempty"` GithubRelease *LockConfigContentsGithubRelease `json:"githubRelease,omitempty"` Manual *LockConfigContentsManual `json:"manual,omitempty"` Directory *LockConfigContentsDirectory `json:"directory,omitempty"` }
type LockConfigContentsDirectory ¶ added in v0.5.0
type LockConfigContentsDirectory struct{}
type LockConfigContentsGit ¶
type LockConfigContentsGithubRelease ¶ added in v0.6.0
type LockConfigContentsGithubRelease struct {
URL string `json:"url"`
}
type LockConfigContentsManual ¶
type LockConfigContentsManual struct{}
type ReleaseNotesChecksums ¶ added in v0.6.0
type ReleaseNotesChecksums struct{}
Click to show internal directories.
Click to hide internal directories.