Documentation
¶
Index ¶
- type Artefact
- type ArtefactBlobs
- type ArtefactKey
- type ArtefactReader
- type ArtefactRepository
- type ArtefactUpload
- type Metadata
- type OCIArtefactService
- func (s *OCIArtefactService) Authorization() (*authn.AuthConfig, error)
- func (s *OCIArtefactService) Download(ctx context.Context, dg sha256.SHA256) (io.ReadCloser, error)
- func (s *OCIArtefactService) GetDigestsKeys(ctx context.Context, digests []sha256.SHA256) (keys []ArtefactKey, missing []sha256.SHA256, err error)
- func (s *OCIArtefactService) Upload(ctx context.Context, artefact ArtefactUpload) error
- type RegistryConfig
- type ReleaseArtefact
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artefact ¶
type Artefact struct {
Digest sha256.SHA256
Metadata Metadata
Content io.ReadCloser
}
Artefact container for an artefact's payload and metadata
type ArtefactKey ¶
type ArtefactReader ¶ added in v0.447.0
type ArtefactReader interface {
io.ReadCloser
}
type ArtefactRepository ¶
type ArtefactUpload ¶ added in v0.447.0
type ArtefactUpload struct {
Digest sha256.SHA256
Size int64
Content io.ReadCloser
}
type OCIArtefactService ¶
type OCIArtefactService struct {
// contains filtered or unexported fields
}
func NewForTesting ¶
func NewForTesting() *OCIArtefactService
func NewOCIRegistryStorage ¶
func NewOCIRegistryStorage(ctx context.Context, config RegistryConfig) (*OCIArtefactService, error)
func (*OCIArtefactService) Authorization ¶ added in v0.446.4
func (s *OCIArtefactService) Authorization() (*authn.AuthConfig, error)
func (*OCIArtefactService) Download ¶
func (s *OCIArtefactService) Download(ctx context.Context, dg sha256.SHA256) (io.ReadCloser, error)
func (*OCIArtefactService) GetDigestsKeys ¶
func (s *OCIArtefactService) GetDigestsKeys(ctx context.Context, digests []sha256.SHA256) (keys []ArtefactKey, missing []sha256.SHA256, err error)
func (*OCIArtefactService) Upload ¶
func (s *OCIArtefactService) Upload(ctx context.Context, artefact ArtefactUpload) error
Upload uploads the specific artifact as a raw blob and links it to a manifest to prevent GC
type RegistryConfig ¶
type RegistryConfig struct {
Registry string `help:"OCI container registry, in the form host[:port]/repository" env:"FTL_ARTEFACT_REGISTRY" required:""`
Username string `help:"OCI container registry username" env:"FTL_ARTEFACT_REGISTRY_USERNAME"`
Password string `help:"OCI container registry password" env:"FTL_ARTEFACT_REGISTRY_PASSWORD"`
AllowInsecure bool `help:"Allows the use of insecure HTTP based registries." env:"FTL_ARTEFACT_REGISTRY_ALLOW_INSECURE"`
}
type ReleaseArtefact ¶
type ReleaseArtefact struct {
Artefact ArtefactKey
Path string
Executable bool
}
Click to show internal directories.
Click to hide internal directories.