Documentation
¶
Index ¶
- type CscMan
- func (cm *CscMan) Close() error
- func (cm *CscMan) FindNamespace(ctx context.Context, name string) (*models.Namespace, error)
- func (cm *CscMan) FindObjectBySha256Prefix(ctx context.Context, sha256Prefix string) ([]*models.Object, error)
- func (cm *CscMan) FindObjectBySha256s(ctx context.Context, sha256s []string) ([]*models.Object, error)
- func (cm *CscMan) RegisterNamespace(ctx context.Context, name string, url string) error
- func (cm *CscMan) Rsync(ctx context.Context, remote string) (string, error)
- func (cm *CscMan) SyncWithCSCDB(ctx context.Context, namespace *models.Namespace) error
- type CscManConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CscMan ¶
type CscMan struct {
// contains filtered or unexported fields
}
func NewCscMan ¶
func NewCscMan(config *CscManConfig) (*CscMan, error)
func (*CscMan) FindNamespace ¶
func (*CscMan) FindObjectBySha256Prefix ¶
func (*CscMan) FindObjectBySha256s ¶
func (*CscMan) RegisterNamespace ¶
type CscManConfig ¶
type CscManConfig struct {
DBPath string `json:"db_path"`
}
Click to show internal directories.
Click to hide internal directories.