Documentation ¶
Index ¶
- type AMSSConfig
- type LocationConfig
- type LocationPurpose
- func (p LocationPurpose) MarshalJSON() ([]byte, error)
- func (p *LocationPurpose) Scan(val interface{}) error
- func (p LocationPurpose) String() string
- func (p *LocationPurpose) UnmarshalJSON(b []byte) error
- func (p LocationPurpose) Value() (driver.Value, error)
- func (p LocationPurpose) Values() []string
- type LocationSource
- type PackageStatus
- type S3Config
- type SFTPConfig
- type URLConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AMSSConfig ¶
type AMSSConfig struct { URL string `json:"url"` Username string `json:"username"` APIKey string `json:"api_key"` }
func (AMSSConfig) OpenBucket ¶
func (AMSSConfig) Valid ¶
func (c AMSSConfig) Valid() bool
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 LocationSourceAMSS )
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 ¶
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 (SFTPConfig) Valid ¶
func (c SFTPConfig) Valid() bool
Click to show internal directories.
Click to hide internal directories.