Documentation ¶
Overview ¶
Package privategit implements the methods to access resources over Git
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitInfo ¶
type GitInfo struct { Repository string `json:"repository"` PrivateSSHKey string `json:"privateSSHKey"` SkipHostKeyChecking bool `json:"skipHostKeyChecking"` Username types.TrimmedString `json:"username"` Password types.TrimmedString `json:"password"` GetOptions string `json:"getOptions"` }
GitInfo defines the accepted SourceInfo attributes and their json definition
type GitResource ¶
type GitResource struct { Handler handler.IGitHandler // contains filtered or unexported fields }
GitResource represents a git repository
func NewGitResource ¶
func NewGitResource(context context.T, info string, bridge ssmparameterresolver.ISsmParameterResolverBridge) (resource *GitResource, err error)
NewGitResource creates a new git resource
func (*GitResource) DownloadRemoteResource ¶
func (resource *GitResource) DownloadRemoteResource(fileSystem filemanager.FileSystem, downloadPath string) (err error, result *remoteresource.DownloadResult)
DownloadRemoteResource clones a git repository into a specific download path
func (*GitResource) ValidateLocationInfo ¶
func (resource *GitResource) ValidateLocationInfo() (valid bool, err error)
ValidateLocationInfo validates attribute values of a git resource
Directories ¶
Path | Synopsis |
---|---|
Package handler provides methods for accessing git repositories over SSH or HTTP(s)
|
Package handler provides methods for accessing git repositories over SSH or HTTP(s) |
core
Package core contains wrapper structs for the git package resources
|
Package core contains wrapper structs for the git package resources |
core/mock
Package mock defines the struct and its corresponding methods for mocking core.Repository
|
Package mock defines the struct and its corresponding methods for mocking core.Repository |
mock
Package mock defines the struct and its corresponding methods for mocking handler.IGitHandler
|
Package mock defines the struct and its corresponding methods for mocking handler.IGitHandler |
Click to show internal directories.
Click to hide internal directories.