model

package
v0.0.0-...-abeaa6a Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEnvironment

func AddEnvironment(repo string, body []byte) (types.Environment, error)

AddEnvironment calls the Tower API - POST /repositories/{name}/environments/{branch}. If an error occurs the error gets returned, otherwise an Environment struct gets returned.

func AddRepository

func AddRepository(body []byte) (types.Repository, error)

AddRepository calls the Tower API - POST /repositories. If an error occurs the error gets returned, otherwise a Repository struct gets returned.

func DeleteRepository

func DeleteRepository(repoName string) error

DeleteRepository calls the Tower API - DELETE /repositories/{name}. If an error occurs the error gets returned, otherwise a Repository struct gets returned.

func DeleteSingleEnvironment

func DeleteSingleEnvironment(repo, branch string) error

DeleteSingleEnvironment calls the Tower API - DELETE /repositories/{name}/environments/{branch}. If an error occurs the error gets returned.

func GetAllRepositories

func GetAllRepositories() ([]types.Repository, error)

GetAllRepositories calls the Tower API - GET /repositories. If an error occurs the error gets returned, otherwise an array of Repository structs gets returned.

func GetAllStatus

func GetAllStatus() ([]types.EnvironmentStatus, error)

GetAllStatus calls the Tower API - GET /repositories/environments/status. If an error occurs the error gets returned, otherwise an array of EnvironmentStatus structs gets returned.

func GetEnvironmentsForRepo

func GetEnvironmentsForRepo(repo string) ([]types.Environment, error)

GetEnvironmentsForRepo calls the Tower API - GET /repositories/{name}/environments. If an error occurs the error gets returned, otherwise an array of Environment structs get returned.

func GetGeneralConfig

func GetGeneralConfig() (types.GeneralConfig, error)

GetGeneralConfig calls the Tower API - GET /repositories/environments. If an error occurs the error gets returned, otherwise an GeneralConfig struct gets returned.

func GetSingleEnvironmentForRepo

func GetSingleEnvironmentForRepo(repo, branch string) (types.Environment, error)

GetSingleEnvironmentForRepo calls the Tower API - GET /repositories/{name}/environments/{branch}. If an error occurs the error gets returned, otherwise an Environment struct gets returned.

func GetSingleRepository

func GetSingleRepository(repoName string) (types.Repository, error)

GetSingleRepository calls the Tower API - GET /repositories/{name}. If an error occurs the error gets returned, otherwise a Repository struct gets returned.

func GetSingleStatus

func GetSingleStatus(repo, branch string) (types.EnvironmentStatus, error)

GetSingleStatus calls the Tower API - GET /repositories/{name}/environments/{branch}/status. If an error occurs the error gets returned, otherwise an EnvironmentStatus struct gets returned.

func GetTowerConfig

func GetTowerConfig() (types.TowerConfiguration, error)

GetTowerConfig calls the Tower API - GET /configuration. If an error occurs the error gets returned, otherwise a TowerConfiguration struct gets returned.

func TriggerSchedule

func TriggerSchedule(body []byte) error

TriggerSchedule calls the Tower API - POST /triggers/schedule. If an error occurs the error gets returned.

func UpdateGeneralConfiguration

func UpdateGeneralConfiguration(body []byte) (types.GeneralConfig, error)

UpdateGeneralConfiguration calls the Tower API - PUT /repositories/environments. If an error occurs the error gets returned, otherwise an GeneralConfig struct gets returned.

func UpdateRepository

func UpdateRepository(body []byte, repoName string) (types.Repository, error)

UpdateRepository calls the Tower API - PUT /repositories/{name}. If an error occurs the error gets returned, otherwise a Repository struct gets returned.

func UpdateSingleEnvironment

func UpdateSingleEnvironment(repo, branch string, body []byte) (types.Environment, error)

UpdateSingleEnvironment calls the Tower API - PUT /repositories/{name}/environments/{branch}. If an error occurs the error gets returned, otherwise an Environment struct gets returned.

func UpdateTowerConfiguration

func UpdateTowerConfiguration(body []byte) (types.TowerConfiguration, error)

UpdateTowerConfiguration calls the Tower API - PUT /configuration. If an error occurs the error gets returned, otherwise a TowerConfiguration struct gets returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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