registry

package
v1.23.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts *Options) error

Types

type GitOptions

type GitOptions struct {
	Dir string `json:"dir,omitempty"` // base git directory
}

type LFSS3Options

type LFSS3Options struct {
	Addr         string        `json:"addr,omitempty" description:"s3 url"`
	Bucket       string        `json:"bucket,omitempty" description:"s3 bucket name the lfs objects are stored in"`
	AccessKey    string        `json:"accesskey,omitempty" description:"s3 access key"`
	SecretKey    string        `json:"secretkey,omitempty" description:"s3 secret key"`
	LinkExpireIn time.Duration `json:"linkexpirein,omitempty" description:"lfs bacth api returned links expire in"`
}

type Options

type Options struct {
	Listen string       `json:"listen,omitempty" description:"http server listen address"`
	S3     LFSS3Options `json:"s3,omitempty" description:"s3 options"`
	Git    GitOptions   `json:"git,omitempty" description:"git options"`
}

func DefaultOptions

func DefaultOptions() *Options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL