Documentation ¶
Index ¶
- Constants
- type FS
- type PackageStore
- func (s *PackageStore) GetJ5Image(ctx context.Context, orgName, imageName, version string) (*source_j5pb.SourceImage, error)
- func (src *PackageStore) GoModInfo(ctx context.Context, packageName, version string) (*gomodproxy.Info, error)
- func (src *PackageStore) GoModLatest(ctx context.Context, packageName string) (*gomodproxy.Info, error)
- func (src *PackageStore) GoModList(ctx context.Context, packageName string) ([]string, error)
- func (src *PackageStore) GoModMod(ctx context.Context, packageName, version string) ([]byte, error)
- func (src *PackageStore) GoModZip(ctx context.Context, packageName, version string) (io.ReadCloser, error)
- func (s *PackageStore) UploadGoModule(ctx context.Context, commitInfo *source_j5pb.CommitInfo, root fs.FS) error
- func (s *PackageStore) UploadJ5Image(ctx context.Context, commitInfo *source_j5pb.CommitInfo, ...) error
Constants ¶
View Source
const ( MetadataAlias = "x-gomod-alias" MetadataCommitHash = "x-gomod-commit-hash" MetadataCommitTime = "x-gomod-commit-time" MetadataContentType = "Content-Type" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackageStore ¶
type PackageStore struct {
// contains filtered or unexported fields
}
func NewPackageStore ¶
func NewPackageStore(db sqrlx.Transactor, fs FS) (*PackageStore, error)
func (*PackageStore) GetJ5Image ¶
func (s *PackageStore) GetJ5Image(ctx context.Context, orgName, imageName, version string) (*source_j5pb.SourceImage, error)
func (*PackageStore) GoModInfo ¶
func (src *PackageStore) GoModInfo(ctx context.Context, packageName, version string) (*gomodproxy.Info, error)
func (*PackageStore) GoModLatest ¶
func (src *PackageStore) GoModLatest(ctx context.Context, packageName string) (*gomodproxy.Info, error)
func (*PackageStore) GoModZip ¶
func (src *PackageStore) GoModZip(ctx context.Context, packageName, version string) (io.ReadCloser, error)
func (*PackageStore) UploadGoModule ¶
func (s *PackageStore) UploadGoModule(ctx context.Context, commitInfo *source_j5pb.CommitInfo, root fs.FS) error
func (*PackageStore) UploadJ5Image ¶
func (s *PackageStore) UploadJ5Image(ctx context.Context, commitInfo *source_j5pb.CommitInfo, img *source_j5pb.SourceImage, registry *config_j5pb.RegistryConfig) error
Click to show internal directories.
Click to hide internal directories.