Documentation
¶
Index ¶
- type AddDomainRequest
- type AddPackageRequest
- type AddUserToDomainRequest
- type DeleteDomainRequest
- type DeletePackageRequest
- type RemoveUserToDomainRequest
- type Service
- func (s Service) AddDomain(o *packages.DomainOptions, byUserID string) (d *packages.Domain, err error)
- func (s Service) AddPackage(o *packages.PackageOptions, byUserID string) (p *packages.Package, err error)
- func (s Service) AddUserToDomain(ref, userID, byUserID string) (err error)
- func (s Service) ChangelogForDomain(domainRef, start string, limit int) (changelog packages.Changelog, err error)
- func (s Service) ChangelogRecord(domainRef, id string) (record *packages.ChangelogRecord, err error)
- func (s Service) DeleteChangelogRecord(domainRef, id string) (record *packages.ChangelogRecord, err error)
- func (s Service) DeleteDomain(ref, byUserID string) (d *packages.Domain, err error)
- func (s Service) DeletePackage(id string, byUserID string) (p *packages.Package, err error)
- func (s Service) Domain(ref string) (d *packages.Domain, err error)
- func (s Service) DomainUsers(ref string) (users packages.DomainUsers, err error)
- func (s Service) Domains(startRef string, limit int) (page packages.DomainsPage, err error)
- func (s Service) DomainsByOwner(userID, startRef string, limit int) (p packages.DomainsPage, err error)
- func (s Service) DomainsByUser(userID, startRef string, limit int) (p packages.DomainsPage, err error)
- func (s Service) Package(id string) (p *packages.Package, err error)
- func (s Service) PackagesByDomain(domainRef, startName string, limit int) (page packages.PackagesPage, err error)
- func (s Service) RemoveUserFromDomain(ref, userID, byUserID string) (err error)
- func (s Service) ResolvePackage(path string) (resolution *packages.PackageResolution, err error)
- func (s Service) UpdateDomain(ref string, o *packages.DomainOptions, byUserID string) (d *packages.Domain, err error)
- func (s Service) UpdatePackage(id string, o *packages.PackageOptions, byUserID string) (p *packages.Package, err error)
- type UpdateDomainRequest
- type UpdatePackageRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddDomainRequest ¶
type AddDomainRequest struct { Options *packages.DomainOptions `json:"options"` ByUserID string `json:"by-user-id"` }
type AddPackageRequest ¶
type AddPackageRequest struct { Options *packages.PackageOptions `json:"options"` ByUserID string `json:"by-user-id"` }
type AddUserToDomainRequest ¶
type AddUserToDomainRequest struct {
ByUserID string `json:"by-user-id"`
}
type DeleteDomainRequest ¶
type DeleteDomainRequest struct {
ByUserID string `json:"by-user-id"`
}
type DeletePackageRequest ¶
type DeletePackageRequest struct {
ByUserID string `json:"by-user-id"`
}
type RemoveUserToDomainRequest ¶
type RemoveUserToDomainRequest struct {
ByUserID string `json:"by-user-id"`
}
type Service ¶
type Service struct {
Client *apiClient.Client
}
Service implements gopherpit.com/gopherpit/services/packages.Service interface.
func NewService ¶ added in v0.3.1
func NewService(c *apiClient.Client) *Service
NewService creates a new Service and injects packages.ErrorRegistry in the API Client.
func (Service) AddPackage ¶
func (Service) AddUserToDomain ¶
func (Service) ChangelogForDomain ¶
func (Service) ChangelogRecord ¶
func (s Service) ChangelogRecord(domainRef, id string) (record *packages.ChangelogRecord, err error)
func (Service) DeleteChangelogRecord ¶
func (s Service) DeleteChangelogRecord(domainRef, id string) (record *packages.ChangelogRecord, err error)
func (Service) DeleteDomain ¶
func (Service) DeletePackage ¶
func (Service) DomainUsers ¶
func (s Service) DomainUsers(ref string) (users packages.DomainUsers, err error)
func (Service) DomainsByOwner ¶
func (Service) DomainsByUser ¶
func (Service) PackagesByDomain ¶
func (Service) RemoveUserFromDomain ¶
func (Service) ResolvePackage ¶
func (s Service) ResolvePackage(path string) (resolution *packages.PackageResolution, err error)
func (Service) UpdateDomain ¶
func (Service) UpdatePackage ¶
type UpdateDomainRequest ¶
type UpdateDomainRequest struct { Options *packages.DomainOptions `json:"options"` ByUserID string `json:"by-user-id"` }
type UpdatePackageRequest ¶
type UpdatePackageRequest struct { Options *packages.PackageOptions `json:"options"` ByUserID string `json:"by-user-id"` }
Click to show internal directories.
Click to hide internal directories.