Documentation ¶
Overview ¶
Package snapshot This file is the entrypoint for the snapshot CLI command for devenv.
Index ¶
- func NewCmdSnapshot(log logrus.FieldLogger) *cli.Command
- type LoadLockfileOptions
- type Options
- func (o *Options) CreateSnapshot(ctx context.Context) (string, error)
- func (o *Options) Generate(ctx context.Context, s *box.SnapshotGenerateConfig, skipUpload bool, ...) error
- func (o *Options) LoadLockFile(ctx context.Context, options LoadLockfileOptions) (*box.SnapshotLock, error)
- func (o *Options) Upload(ctx context.Context, s *box.SnapshotGenerateConfig, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdSnapshot ¶
func NewCmdSnapshot(log logrus.FieldLogger) *cli.Command
Types ¶
type LoadLockfileOptions ¶ added in v1.51.0
type LoadLockfileOptions struct {
// contains filtered or unexported fields
}
type Options ¶
type Options struct { // KubernetesVersion is the version of Kubernetes to use when generating snapshots KubernetesVersion string // contains filtered or unexported fields }
func NewOptions ¶
func (*Options) CreateSnapshot ¶
func (*Options) Generate ¶
func (o *Options) Generate(ctx context.Context, s *box.SnapshotGenerateConfig, skipUpload bool, channel box.SnapshotLockChannel, targetName string) error
Generate does spin up devenv, deploys applications and generates a snapshots for all targets, and finally and uploads them. If env UPLOAD_TO_LOCAL_SNAPSHOT_STORAGE is defined, then snapshots are stored instead in a local minIO instance, to be validated.
func (*Options) LoadLockFile ¶ added in v1.51.0
func (o *Options) LoadLockFile(ctx context.Context, options LoadLockfileOptions) (*box.SnapshotLock, error)
LoadLockFile reads lock file from target s3c
Click to show internal directories.
Click to hide internal directories.