Documentation ¶
Index ¶
- type Config
- type Storage
- func (st *Storage) FindProfileIDs(ctx context.Context, params *storage.FindProfilesParams) ([]profile.ID, error)
- func (st *Storage) FindProfiles(ctx context.Context, params *storage.FindProfilesParams) ([]profile.Meta, error)
- func (st *Storage) ListProfiles(ctx context.Context, pids []profile.ID) (storage.ProfileList, error)
- func (st *Storage) ListServices(ctx context.Context) ([]string, error)
- func (st *Storage) WriteProfile(ctx context.Context, params *storage.WriteProfileParams, r io.Reader) (profile.Meta, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage stores and loads profiles from gcs.
The schema for the object key: schemaV.service/profile_type/digest,label1=value1,label2=value2
Where "schemaV" indicates the naming schema that was used when the profile was stored; "digests" uniquely describes the profile, it also includes profiles creation time.
func NewStorage ¶
func (*Storage) FindProfileIDs ¶
func (st *Storage) FindProfileIDs(ctx context.Context, params *storage.FindProfilesParams) ([]profile.ID, error)
FindProfileIDs queries gcs for profile IDs matched searched criteria.
func (*Storage) FindProfiles ¶
func (st *Storage) FindProfiles(ctx context.Context, params *storage.FindProfilesParams) ([]profile.Meta, error)
FindProfiles queries gcs for profile metas matched searched criteria.
func (*Storage) ListProfiles ¶
func (*Storage) ListServices ¶
ListServices returns the list of distinct services for which profiles are stored in the bucket.
Click to show internal directories.
Click to hide internal directories.