Documentation
¶
Overview ¶
Package vault provides the interfaces for vault provider
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
CheckConnectivity(ctx context.Context) error
UploadFile(ctx context.Context, path string, content []byte, message string) error
DownloadFile(ctx context.Context, path string) ([]byte, error)
DeleteFile(ctx context.Context, path, sha, message string) error
ListFiles(ctx context.Context) ([]FileInfo, error)
GetFileSHA(ctx context.Context, path string) (string, error)
Owner() string
Repo() string
RepoURL() string
}
Provider defines the interface for vault operations.
Click to show internal directories.
Click to hide internal directories.