Documentation
¶
Index ¶
- Constants
- func MetadataObjectPath(tenantID string, id *ValidGnuBuildID) string
- func ObjectPath(tenantID string, id *ValidGnuBuildID) string
- type Config
- type Store
- func (s *Store) ShouldInitiateUpload(ctx context.Context, ...) (*connect.Response[debuginfov1alpha1.ShouldInitiateUploadResponse], error)
- func (s *Store) UploadFinished(ctx context.Context, ...) (*connect.Response[debuginfov1alpha1.UploadFinishedResponse], error)
- func (s *Store) UploadHTTPHandler() http.Handler
- type ValidGnuBuildID
Constants ¶
View Source
const ( ReasonFirstTimeSeen = "First time we see this Build ID, therefore please upload!" ReasonUploadStale = "A previous upload was started but not finished and is now stale, so it can be retried." ReasonUploadInProgress = "A previous upload is still in-progress and not stale yet (only stale uploads can be retried)." ReasonDebuginfoAlreadyExists = "Debuginfo already exists and is not marked as invalid, therefore no new upload is needed." ReasonDisabled = "DebugInfo upload disabled" )
Variables ¶
This section is empty.
Functions ¶
func MetadataObjectPath ¶
func MetadataObjectPath(tenantID string, id *ValidGnuBuildID) string
func ObjectPath ¶
func ObjectPath(tenantID string, id *ValidGnuBuildID) string
Types ¶
type Config ¶
type Config struct {
Enabled bool `yaml:"-" category:"advanced"`
MaxUploadSize int64 `yaml:"-" category:"advanced"`
UploadStalePeriod time.Duration `yaml:"-" category:"advanced"`
UploadTimeout time.Duration `yaml:"-" category:"advanced"`
}
func (*Config) RegisterFlags ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ShouldInitiateUpload ¶
func (s *Store) ShouldInitiateUpload( ctx context.Context, req *connect.Request[debuginfov1alpha1.ShouldInitiateUploadRequest], ) (*connect.Response[debuginfov1alpha1.ShouldInitiateUploadResponse], error)
func (*Store) UploadFinished ¶
func (s *Store) UploadFinished( ctx context.Context, req *connect.Request[debuginfov1alpha1.UploadFinishedRequest], ) (*connect.Response[debuginfov1alpha1.UploadFinishedResponse], error)
func (*Store) UploadHTTPHandler ¶
type ValidGnuBuildID ¶
type ValidGnuBuildID struct {
// contains filtered or unexported fields
}
func ValidateGnuBuildID ¶
func ValidateGnuBuildID(gnuBuildID string) (*ValidGnuBuildID, error)
Click to show internal directories.
Click to hide internal directories.