Documentation ¶
Overview ¶
go get github.com/fatih/gomodifytags
Index ¶
- type Err
- type MirrorRepresentation
- type MirrorResource
- type PackageIndexResource
- func (svc PackageIndexResource) AllOrigins() ([][]string, error)
- func (svc PackageIndexResource) GetResource(req *restful.Request, res *restful.Response)
- func (svc PackageIndexResource) Names(req *restful.Request, res *restful.Response)
- func (svc PackageIndexResource) Origins(req *restful.Request, res *restful.Response)
- func (svc PackageIndexResource) RegisterTo(container *restful.Container)
- type PackagePageData
- type PackageRepresentation
- type PageResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Err ¶
type MirrorRepresentation ¶
type MirrorRepresentation struct { Name string `json:"name"` Location string `json:"location"` Bandwidth string `json:"bandwidth"` Host string `json:"host"` URL string `json:"url"` URLs pq.StringArray `json:"urls" gorm:"type:text[]"` LastUpdated time.Time `json:"lastUpdated"` LastError string `json:"lastError"` LastRefreshDuration time.Duration `json:"lastRefreshDuration"` }
type MirrorResource ¶
func (MirrorResource) Mirror ¶
func (svc MirrorResource) Mirror(req *restful.Request, res *restful.Response)
func (MirrorResource) Mirrors ¶
func (svc MirrorResource) Mirrors(req *restful.Request, res *restful.Response)
func (MirrorResource) RegisterTo ¶
func (svc MirrorResource) RegisterTo(container *restful.Container)
type PackageIndexResource ¶
func (PackageIndexResource) AllOrigins ¶
func (svc PackageIndexResource) AllOrigins() ([][]string, error)
func (PackageIndexResource) GetResource ¶
func (svc PackageIndexResource) GetResource(req *restful.Request, res *restful.Response)
func (PackageIndexResource) Names ¶
func (svc PackageIndexResource) Names(req *restful.Request, res *restful.Response)
func (PackageIndexResource) Origins ¶
func (svc PackageIndexResource) Origins(req *restful.Request, res *restful.Response)
func (PackageIndexResource) RegisterTo ¶
func (svc PackageIndexResource) RegisterTo(container *restful.Container)
type PackagePageData ¶
type PackagePageData struct { Name string `json:"name"` Packages []*structs.PackageIndex `json:"packages"` }
type PackageRepresentation ¶
type PackageRepresentation struct { Branch string `json:"branch"` Repo string `json:"repo"` Arch string `json:"arch"` Name string `json:"name"` Version string `json:"version"` Size int `json:"size"` InstallSize int `json:"installSize"` Description string `json:"description"` URL string `json:"url"` License string `json:"license"` Origin string `json:"origin"` BuildTime time.Time `json:"buildTime"` Commit string `json:"commit"` Key string `json:"key"` Path string `json:"path"` Depends pq.StringArray `gorm:"type:text[]" json:"depends"` Provides pq.StringArray `gorm:"type:text[]" json:"provides"` InstallIf pq.StringArray `gorm:"type:text[]" json:"installIf"` MaintainerName string `json:"maintainerName"` }
type PageResource ¶
func (PageResource) GetPackagePageData ¶
func (svc PageResource) GetPackagePageData(req *restful.Request, res *restful.Response)
func (PageResource) RegisterTo ¶
func (svc PageResource) RegisterTo(container *restful.Container)
Click to show internal directories.
Click to hide internal directories.