httpPackages

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2017 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

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) AddDomain

func (s Service) AddDomain(o *packages.DomainOptions, byUserID string) (d *packages.Domain, err error)

func (Service) AddPackage

func (s Service) AddPackage(o *packages.PackageOptions, byUserID string) (p *packages.Package, err error)

func (Service) AddUserToDomain

func (s Service) AddUserToDomain(ref, userID, byUserID string) (err error)

func (Service) ChangelogForDomain

func (s Service) ChangelogForDomain(domainRef, start string, limit int) (changelog packages.Changelog, err error)

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 (s Service) DeleteDomain(ref, byUserID string) (d *packages.Domain, err error)

func (Service) DeletePackage

func (s Service) DeletePackage(id string, byUserID string) (p *packages.Package, err error)

func (Service) Domain

func (s Service) Domain(ref string) (d *packages.Domain, err error)

func (Service) DomainUsers

func (s Service) DomainUsers(ref string) (users packages.DomainUsers, err error)

func (Service) Domains

func (s Service) Domains(startRef string, limit int) (page packages.DomainsPage, err error)

func (Service) DomainsByOwner

func (s Service) DomainsByOwner(userID, startRef string, limit int) (p packages.DomainsPage, err error)

func (Service) DomainsByUser

func (s Service) DomainsByUser(userID, startRef string, limit int) (p packages.DomainsPage, err error)

func (Service) Package

func (s Service) Package(id string) (p *packages.Package, err error)

func (Service) PackagesByDomain

func (s Service) PackagesByDomain(domainRef, startName string, limit int) (page packages.PackagesPage, err error)

func (Service) RemoveUserFromDomain

func (s Service) RemoveUserFromDomain(ref, userID, byUserID string) (err error)

func (Service) ResolvePackage

func (s Service) ResolvePackage(path string) (resolution *packages.PackageResolution, err error)

func (Service) UpdateDomain

func (s Service) UpdateDomain(ref string, o *packages.DomainOptions, byUserID string) (d *packages.Domain, err error)

func (Service) UpdatePackage

func (s Service) UpdatePackage(id string, o *packages.PackageOptions, byUserID string) (p *packages.Package, err error)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL