requester

package
v0.0.0-...-3a6820e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDomains

func GetDomains(projectName string, s *session.Session) ([]models.Domain, error)

func GetIPs

func GetIPs(projectName string, s *session.Session) ([]models.IP, error)

func GetPorts

func GetPorts(projectName string, ip string, s *session.Session) ([]models.Port, error)

func GetProject

func GetProject(name string, s *session.Session) (models.Project, error)

GetProject is an helper function to get all the information from a project by its name Return :

  • a models.Projects from any kind of database
  • error if anything unexpected occurred during the execution of the function

func GetProjects

func GetProjects(s *session.Session) ([]models.Project, error)

GetProjects is an helper function to get a slice of all the projects availables Return :

  • Slice of models.Projects from any kind of database
  • error if anything unexpected occurred during the execution of the function

func GetURIs

func GetURIs(projectName string, ip string, port string, s *session.Session) ([]models.URI, error)

func PostDomain

func PostDomain(projectName string, s *session.Session, domain models.Domain) error

func PostIP

func PostIP(projectName string, s *session.Session, ip models.IP) error

func PostPort

func PostPort(projectName string, s *session.Session, ip string, port models.Port) error

func PostProject

func PostProject(p models.Project, s *session.Session) error

PostProject is a wrapper function to create a new project.

func PostURI

func PostURI(projectName string, s *session.Session, ip string, port int, uri models.URI) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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