Documentation ¶
Index ¶
- Variables
- type Feature
- type Image
- type ImageGetOptions
- type ImageListOptions
- type ImageStore
- type Layer
- type LayerGetOptions
- type LayerListOptions
- type LayerPosition
- type LayerPositionListOptions
- type LayerPositionStore
- type LayerStore
- type Model
- type OSFeature
- type Platform
- type PlatformGetOptions
- type PlatformListOptions
- type PlatformStore
- type Store
- type StoreTransaction
- type Tag
- type TagGetOptions
- type TagListOptions
- type TagStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDoesNotExist is returned if the requested model could not be found in the store. ErrDoesNotExist = errors.New("Model does not exist") )
Functions ¶
This section is empty.
Types ¶
type Image ¶
type ImageGetOptions ¶
type ImageGetOptions struct { Digest string ID int Name string TagDistinction string TagIsLatest *bool TagName string }
ImageGetOptions is used to query image with certain criterias.
type ImageListOptions ¶
type ImageStore ¶
type ImageStore interface { Create(i *Image) error FindByLayerIDHavingLayerCountGreaterThan(layerID, count int) ([]*Image, error) Get(o ImageGetOptions) (*Image, error) List(o ImageListOptions) ([]*Image, error) Update(i *Image) error }
ImageStore allows creating, manipulating and reading images.
type LayerGetOptions ¶
type LayerListOptions ¶
type LayerListOptions struct {
PlatformID int
}
type LayerPosition ¶
func (LayerPosition) TableName ¶
func (LayerPosition) TableName() string
type LayerPositionStore ¶
type LayerPositionStore interface { Create(*LayerPosition) error List(o LayerPositionListOptions) ([]*LayerPosition, error) }
type LayerStore ¶
type LayerStore interface { Create(l *Layer) error Get(o LayerGetOptions) (*Layer, error) List(o LayerListOptions) ([]*Layer, error) Update(l *Layer) error }
type Platform ¶
type Platform struct { Model Architecture string Created time.Time CreatedAt time.Time Features []*Feature `gorm:"many2many:imagespy_platform_features;"` ImageID int ManifestDigest string OS string OSFeatures []*OSFeature `gorm:"many2many:imagespy_platform_os_features;"` OSVersion string Variant string }
type PlatformGetOptions ¶
type PlatformListOptions ¶
type PlatformListOptions struct {
LayerDigest string
}
type PlatformStore ¶
type PlatformStore interface { Create(*Platform) error Get(o PlatformGetOptions) (*Platform, error) List(o PlatformListOptions) ([]*Platform, error) }
type Store ¶
type Store interface { Close() error Images() ImageStore Layers() LayerStore LayerPositions() LayerPositionStore Platforms() PlatformStore Tags() TagStore Transaction() (StoreTransaction, error) }
Store represents the high-level API to access models.
type StoreTransaction ¶
type TagGetOptions ¶
type TagListOptions ¶
Click to show internal directories.
Click to hide internal directories.