Documentation ¶
Index ¶
- func AddEnvironment(repo string, body []byte) (types.Environment, error)
- func AddRepository(body []byte) (types.Repository, error)
- func DeleteRepository(repoName string) error
- func DeleteSingleEnvironment(repo, branch string) error
- func GetAllRepositories() ([]types.Repository, error)
- func GetAllStatus() ([]types.EnvironmentStatus, error)
- func GetEnvironmentsForRepo(repo string) ([]types.Environment, error)
- func GetGeneralConfig() (types.GeneralConfig, error)
- func GetSingleEnvironmentForRepo(repo, branch string) (types.Environment, error)
- func GetSingleRepository(repoName string) (types.Repository, error)
- func GetSingleStatus(repo, branch string) (types.EnvironmentStatus, error)
- func GetTowerConfig() (types.TowerConfiguration, error)
- func TriggerSchedule(body []byte) error
- func UpdateGeneralConfiguration(body []byte) (types.GeneralConfig, error)
- func UpdateRepository(body []byte, repoName string) (types.Repository, error)
- func UpdateSingleEnvironment(repo, branch string, body []byte) (types.Environment, error)
- func UpdateTowerConfiguration(body []byte) (types.TowerConfiguration, error)
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 ¶
DeleteRepository calls the Tower API - DELETE /repositories/{name}. If an error occurs the error gets returned, otherwise a Repository struct gets returned.
func DeleteSingleEnvironment ¶
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 ¶
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.