s3-orchestrator

synccmd

import "github.com/afreidah/s3-orchestrator/internal/cli/synccmd"

Package synccmd implements the `s3-orchestrator sync` subcommand, which imports objects already present on a backend bucket into the metadata store so the proxy can serve them.

Index

func Run

func Run(args []string, stderr io.Writer) int

Run is the CLI entry point. It parses the sync flags, opens the database, and walks the backend, returning the process exit code.

type Options

Options holds the parsed CLI flags for `s3-orchestrator sync`.

type Options struct {
    ConfigPath  string
    BackendName string
    BucketName  string
    Prefix      string
    DryRun      bool
}

Generated by gomarkdoc