Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStorage ¶
type FileStorage struct {
// contains filtered or unexported fields
}
func NewFileStorage ¶
type GitStorage ¶
type GitStorage struct {
// contains filtered or unexported fields
}
func NewGitStorage ¶
func NewGitStorage(ctx context.Context, conf *GitStorageConfig, logger *logrus.Logger) (*GitStorage, error)
type GitStorageConfig ¶
type GitStorageConfig struct { // Local repository path RepositoryPath string URL string Pull bool Username string Password string PemBytes []byte // Name of the remote to be pulled. If empty, uses the default. RemoteName string // Remote branch to clone. If empty, uses HEAD. ReferenceName string Push bool // RefSpecs specify what destination ref to update with what source // object. A refspec with empty src can be used to delete a reference. RefSpecs []string // Target path template relative to work tree DestinationPath string Summary string // Author name Name string // Author email Email string CommitMessage string // contains filtered or unexported fields }
type NewStorageFunc ¶
type WriteCloserWithError ¶ added in v0.1.1
type WriteCloserWithError interface { io.WriteCloser CloseWithError(err error) error }
Click to show internal directories.
Click to hide internal directories.