types

package
v0.0.0-...-614c4e1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocationConfig

type LocationConfig struct {
	Value configVal
}

func (LocationConfig) MarshalJSON

func (c LocationConfig) MarshalJSON() ([]byte, error)

func (*LocationConfig) UnmarshalJSON

func (c *LocationConfig) UnmarshalJSON(blob []byte) error

type LocationPurpose

type LocationPurpose uint
const (
	LocationPurposeUnspecified LocationPurpose = iota
	LocationPurposeAIPStore
)

func NewLocationPurpose

func NewLocationPurpose(purpose string) LocationPurpose

func (LocationPurpose) MarshalJSON

func (p LocationPurpose) MarshalJSON() ([]byte, error)

func (*LocationPurpose) Scan

func (p *LocationPurpose) Scan(val interface{}) error

Scan tells our code how to read the enum into our type.

func (LocationPurpose) String

func (p LocationPurpose) String() string

func (*LocationPurpose) UnmarshalJSON

func (p *LocationPurpose) UnmarshalJSON(b []byte) error

func (LocationPurpose) Value

func (p LocationPurpose) Value() (driver.Value, error)

Value provides the DB a string from int.

func (LocationPurpose) Values

func (p LocationPurpose) Values() []string

type LocationSource

type LocationSource uint
const (
	LocationSourceUnspecified LocationSource = iota
	LocationSourceMinIO
	LocationSourceSFTP
)

func NewLocationSource

func NewLocationSource(source string) LocationSource

func (LocationSource) MarshalJSON

func (s LocationSource) MarshalJSON() ([]byte, error)

func (*LocationSource) Scan

func (s *LocationSource) Scan(val interface{}) error

Scan tells our code how to read the enum into our type.

func (LocationSource) String

func (s LocationSource) String() string

func (*LocationSource) UnmarshalJSON

func (s *LocationSource) UnmarshalJSON(b []byte) error

func (LocationSource) Value

func (s LocationSource) Value() (driver.Value, error)

Value provides the DB a string from int.

func (LocationSource) Values

func (s LocationSource) Values() []string

type PackageStatus

type PackageStatus uint
const (
	StatusUnspecified PackageStatus = iota
	StatusInReview
	StatusRejected
	StatusStored
	StatusMoving
)

func NewPackageStatus

func NewPackageStatus(status string) PackageStatus

func (PackageStatus) MarshalJSON

func (p PackageStatus) MarshalJSON() ([]byte, error)

func (*PackageStatus) Scan

func (p *PackageStatus) Scan(val interface{}) error

Scan tells our code how to read the enum into our type.

func (PackageStatus) String

func (p PackageStatus) String() string

func (*PackageStatus) UnmarshalJSON

func (p *PackageStatus) UnmarshalJSON(b []byte) error

func (PackageStatus) Value

func (p PackageStatus) Value() (driver.Value, error)

Value provides the DB a string from int.

func (PackageStatus) Values

func (p PackageStatus) Values() []string

type S3Config

type S3Config struct {
	Bucket    string `json:"bucket"`
	Region    string `json:"region"`
	Endpoint  string `json:"endpoint,omitempty"`
	PathStyle bool   `json:"path_style,omitempty"`
	Profile   string `json:"profile,omitempty"`
	Key       string `json:"key,omitempty"`
	Secret    string `json:"secret,omitempty"`
	Token     string `json:"token,omitempty"`
}

func (S3Config) OpenBucket

func (c S3Config) OpenBucket(ctx context.Context) (*blob.Bucket, error)

func (S3Config) Valid

func (c S3Config) Valid() bool

type SFTPConfig

type SFTPConfig struct {
	Address   string `json:"address"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	Directory string `json:"directory"`
}

func (SFTPConfig) OpenBucket

func (c SFTPConfig) OpenBucket(ctx context.Context) (*blob.Bucket, error)

func (SFTPConfig) Valid

func (c SFTPConfig) Valid() bool

type SSConfig

type SSConfig struct {
	URL      string `json:"url"`
	Username string `json:"username"`
	APIKey   string `json:"api_key"`
}

func (SSConfig) OpenBucket

func (c SSConfig) OpenBucket(ctx context.Context) (*blob.Bucket, error)

func (SSConfig) Valid

func (c SSConfig) Valid() bool

type URLConfig

type URLConfig struct {
	URL string `json:"url"`
}

func (URLConfig) OpenBucket

func (c URLConfig) OpenBucket(ctx context.Context) (*blob.Bucket, error)

func (URLConfig) Valid

func (c URLConfig) Valid() bool

Jump to

Keyboard shortcuts

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