db

package
v0.0.0-...-87a291c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfilesListRequest

type ProfilesListRequest struct {
	Filters   map[string][]string
	Name      string
	Namespace string
	Order     string
	Page      int
	PerPage   int
	Sort      string
}

type Store

type Store struct {
	DB *pgdb.DB
}

func (*Store) Delete

func (s *Store) Delete(namespace string, name string, version string) error

func (*Store) GetProfileInfo

func (s *Store) GetProfileInfo(filename string, firejailProfilePath string) (string, []byte, []byte, error)

func (*Store) InstallMarket

func (s *Store) InstallMarket(owner, name, version string) error

func (*Store) ListProfiles

func (s *Store) ListProfiles() ([]inspec.Profile, error)

func (*Store) ListProfilesMetadata

func (s *Store) ListProfilesMetadata(req ProfilesListRequest) ([]inspec.Metadata, int, error)

func (*Store) LoadMarketProfiles

func (s *Store) LoadMarketProfiles(path string, firejailProfilePath string) error

func (*Store) Read

func (s *Store) Read(namespace string, name string, version string) (*inspec.Profile, error)

returns data about an individual profile

func (*Store) ReadMarket

func (s *Store) ReadMarket(name string, version string) (*inspec.Profile, error)

returns data about an individual market profile

func (*Store) ReadMarketTar

func (s *Store) ReadMarketTar(name string, version string) ([]byte, error)

returns market tar

func (*Store) ReadTar

func (s *Store) ReadTar(namespace string, name string, version string) ([]byte, error)

returns the tar for a specific profile

func (*Store) UploadProfile

func (s *Store) UploadProfile(sha256 string, namespace string, tar []byte, info []byte) error

Jump to

Keyboard shortcuts

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