Documentation ¶
Index ¶
- func GetDomains(projectName string, s *session.Session) ([]models.Domain, error)
- func GetIPs(projectName string, s *session.Session) ([]models.IP, error)
- func GetPorts(projectName string, ip string, s *session.Session) ([]models.Port, error)
- func GetProject(name string, s *session.Session) (models.Project, error)
- func GetProjects(s *session.Session) ([]models.Project, error)
- func GetURIs(projectName string, ip string, port string, s *session.Session) ([]models.URI, error)
- func PostDomain(projectName string, s *session.Session, domain models.Domain) error
- func PostIP(projectName string, s *session.Session, ip models.IP) error
- func PostPort(projectName string, s *session.Session, ip string, port models.Port) error
- func PostProject(p models.Project, s *session.Session) error
- func PostURI(projectName string, s *session.Session, ip string, port int, uri models.URI) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProject ¶
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 ¶
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 PostDomain ¶
func PostProject ¶
PostProject is a wrapper function to create a new project.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.