Documentation
¶
Index ¶
- func ChartEntryPath(root, kind, key string) string
- func ChartKindRoot(root, kind string) string
- func GitEntryPath(root, key string) string
- func MetadataPath(entryPath string) string
- func RedactedTarget(raw string) string
- func RemoteEntryPath(root, key string) string
- func RemoteGitRepoPath(root, key string) string
- func RemoteHTTPFilePath(root, key string) string
- func WriteMetadata(entryPath string, metadata Metadata) error
- type Entry
- type Metadata
- type OperationOptions
- type OperationResult
- type Options
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChartEntryPath ¶
func ChartKindRoot ¶
func GitEntryPath ¶
func MetadataPath ¶
func RedactedTarget ¶
func RemoteEntryPath ¶
func RemoteGitRepoPath ¶
func RemoteHTTPFilePath ¶
func WriteMetadata ¶
Types ¶
type Entry ¶
type Entry struct {
Source Source `json:"source" yaml:"source"`
Kind string `json:"kind" yaml:"kind"`
Key string `json:"key" yaml:"key"`
Path string `json:"path" yaml:"path"`
MetadataPath string `json:"metadataPath,omitempty" yaml:"metadataPath,omitempty"`
SizeBytes int64 `json:"sizeBytes" yaml:"sizeBytes"`
ModifiedAt time.Time `json:"modifiedAt" yaml:"modifiedAt"`
Legacy bool `json:"legacy" yaml:"legacy"`
Metadata *Metadata `json:"metadata,omitempty" yaml:"metadata,omitempty"`
// contains filtered or unexported fields
}
type Metadata ¶
type Metadata struct {
SchemaVersion int `json:"schemaVersion" yaml:"schemaVersion"`
Source Source `json:"source" yaml:"source"`
Kind string `json:"kind" yaml:"kind"`
Key string `json:"key" yaml:"key"`
Target string `json:"target,omitempty" yaml:"target,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Version string `json:"version,omitempty" yaml:"version,omitempty"`
Revision string `json:"revision,omitempty" yaml:"revision,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`
CreatedAt time.Time `json:"createdAt" yaml:"createdAt"`
UpdatedAt time.Time `json:"updatedAt" yaml:"updatedAt"`
}
type OperationOptions ¶
type OperationResult ¶
type OperationResult struct {
Entries []Entry `json:"entries" yaml:"entries"`
RemovedCount int `json:"removedCount" yaml:"removedCount"`
DryRun bool `json:"dryRun" yaml:"dryRun"`
}
func Delete ¶
func Delete(opts OperationOptions) (OperationResult, error)
func Prune ¶
func Prune(opts OperationOptions) (OperationResult, error)
Click to show internal directories.
Click to hide internal directories.