18 lines
295 B
Go
18 lines
295 B
Go
|
package templater
|
||
|
|
||
|
type PackageRepository interface {
|
||
|
Manage() error
|
||
|
Update() error
|
||
|
Add() error
|
||
|
Delete() error
|
||
|
}
|
||
|
|
||
|
type Repository struct {
|
||
|
Actions PackageRepository
|
||
|
|
||
|
Name string `json:"name"`
|
||
|
Type string `json:"type"`
|
||
|
URL string `json:"url"`
|
||
|
Enabled bool `json:"enabled"`
|
||
|
}
|