Documentation
¶
Overview ¶
Package connectorartifacts owns operator access to same-repository connector builds and the cross-replica retention sweep for their object storage.
Index ¶
- type ArtifactSet
- type Download
- type File
- type Service
- func (s *Service) DownloadURL(ctx context.Context, principal authz.Principal, agentID uuid.UUID, ...) (Download, error)
- func (s *Service) List(ctx context.Context, principal authz.Principal, agentID uuid.UUID, ...) ([]ArtifactSet, error)
- func (s *Service) Run(ctx context.Context) error
- func (s *Service) Sweep(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactSet ¶
type ArtifactSet struct {
ID uuid.UUID
BuildID uuid.UUID
ConnectorSlug string
SourceRef string
Kind string
ContractID string
Name string
Description string
ArtifactVersion string
ArtifactDigest string
ProtocolMajor int32
ProtocolMinor int32
Features []string
ServiceMode string
InterfaceDescriptor []byte
InterfaceHash string
SettingsSchema []byte
CreatedAt time.Time
Files []File
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DownloadURL ¶
func (s *Service) DownloadURL(ctx context.Context, principal authz.Principal, agentID uuid.UUID, needSlug string, artifactFileID uuid.UUID, notices bool) (Download, error)
DownloadURL authorizes the need and artifact relationship before issuing a short-lived URL. notices selects the platform-specific dependency notice.
Click to show internal directories.
Click to hide internal directories.