Documentation
¶
Overview ¶
Package bottle defines bottle command and subcommand actions.
Index ¶
- func GUIURLPath(pth string) string
- func LoadAndUpgradeBottle(ctx context.Context, cfg *v1alpha1.Configuration, path string) (*bottle.Bottle, error)
- func OpenFileInEditor(ctx context.Context, editor string, filename string) error
- type Action
- type Annotate
- type AnnotateList
- type ArtifactList
- type ArtifactRemove
- type ArtifactSet
- type AuthorAdd
- type AuthorList
- type AuthorRemove
- type Commit
- type CompressionLevelOptions
- type Delete
- type Describe
- type Edit
- type GUI
- type Init
- type Label
- type LabelList
- type MetricAdd
- type MetricList
- type MetricRemove
- type PartLabel
- type PartList
- type Pull
- type Push
- type Show
- type Sign
- type SourceAdd
- type SourceList
- type SourceRemove
- type Status
- type Verify
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GUIURLPath ¶
GUIURLPath returns the path used to store the connection URL to the last started bottle edit GUI HACK for the unit test.
func LoadAndUpgradeBottle ¶
func LoadAndUpgradeBottle(ctx context.Context, cfg *v1alpha1.Configuration, path string) (*bottle.Bottle, error)
LoadAndUpgradeBottle loads a bottle from the provided path, and checks if it needs to be updated using the migration system.
Types ¶
type AnnotateList ¶
type AnnotateList struct {
*Action
Telemetry actions.TelemetryOptions
Selectors []string // Selectors for parts to retrieve
Parts []string // Titles of parts to retrieve
Artifacts []string // Filter by public artifact type
Insecure bool // Enables insecure communication with a registry if https fails with http response
Empty bool // Only annotatelist metadata from the bottle
}
AnnotateList represents the bottle annotate list action.
type ArtifactList ¶
type ArtifactList struct {
*Action
}
ArtifactList represents the bottle artifact list action.
type ArtifactRemove ¶
type ArtifactRemove struct {
*Action
}
ArtifactRemove represents the bottle artifact remove action.
type ArtifactSet ¶
ArtifactSet represents the bottle artifact set action.
type AuthorAdd ¶
type AuthorAdd struct {
*Action
}
AuthorAdd represents the bottle author add action.
type AuthorList ¶
type AuthorList struct {
*Action
}
AuthorList represents the bottle author list action.
type AuthorRemove ¶
type AuthorRemove struct {
*Action
}
AuthorRemove represents the bottle author remove action.
type Commit ¶
type Commit struct {
*Action
Compression CompressionLevelOptions
NoDeprecate bool // Don't deprecate existing bottle
}
Commit represents the bottle commit action.
type CompressionLevelOptions ¶
type CompressionLevelOptions struct {
Level string // change the compression level of compressed bottle parts
}
CompressionLevelOptions defines options for bottle part Compression Levels.
type Init ¶
type Init struct {
*Action
Force bool // Recreate the initialization metadata even if it already exists
}
Init represents the init action.
type LabelList ¶
type LabelList struct {
*Action
}
LabelList represents the bottle label list action.
type MetricList ¶
type MetricList struct {
*Action
}
MetricList represents the bottle metric list action.
type MetricRemove ¶
type MetricRemove struct {
*Action
}
MetricRemove represents the bottle metric remove action.
type PartLabel ¶
type PartLabel struct {
*Action
}
PartLabel represents the bottle part label action.
type Pull ¶
type Pull struct {
*Action
Telemetry actions.TelemetryOptions
PartSelector bottle.PartSelectorOptions
}
Pull represents the bottle pull action.
type Push ¶
type Push struct {
*Action
Telemetry actions.TelemetryOptions
Compression CompressionLevelOptions
NoOverwrite bool // Only push data if if doesn't already exist
NoDeprecate bool // Don't deprecate existing bottle
Ref string
}
Push represents the bottle push action.
type Show ¶
type Show struct {
*Action
PartSelector bottle.PartSelectorOptions
Ref string
}
Show represents the bottle show action.
type Sign ¶
type Sign struct {
*Action
// DigestAlg string
KeyPath string
KeyAPI string
UserIdentity string
KeyID string
NoDeprecate bool // Don't deprecate existing bottle when committing.
}
Sign represents a manifest digest sign action.
type SourceAdd ¶
type SourceAdd struct {
*Action
// BottleForURI is true when the srcURI should be interpreted as a bottle directory (to extract the bottle ID from)
BottleForURI bool
// ReferenceForURI is true when the srcURI should be interpreted as a bottle reference
ReferenceForURI bool
}
SourceAdd represents the bottle source add action.
type SourceList ¶
type SourceList struct {
*Action
}
SourceList represents the bottle source list action.
type SourceRemove ¶
type SourceRemove struct {
*Action
}
SourceRemove represents the bottle source remove action.
Source Files
¶
- annotate.go
- annotate_list.go
- artifact_list.go
- artifact_remove.go
- artifact_set.go
- author_add.go
- author_list.go
- author_remove.go
- bottle.go
- commit.go
- delete.go
- describe.go
- edit.go
- gui.go
- init.go
- label.go
- label_list.go
- metric_add.go
- metric_list.go
- metric_remove.go
- part_label.go
- part_list.go
- pull.go
- push.go
- show.go
- sign.go
- source_add.go
- source_list.go
- source_remove.go
- status.go
- verify.go