Documentation
¶
Index ¶
- Constants
- func BuildCodefreshSdk(token string, host string) codefreshSdk.Codefresh
- type AgentApplication
- type AgentProject
- type Api
- func (a *Api) CreateEnvironment(name string, project string, application string, namespace string) error
- func (a *Api) CreateIntegration(name string, host string, username string, password string, token string, ...) error
- func (a *Api) DeleteEnvironment(name string) error
- func (a *Api) GetDefaultGitContext() (error, *codefreshSdk.ContextPayload)
- func (a *Api) GetEnvironments() ([]codefreshSdk.CFEnvironment, error)
- func (a *Api) GetGitContextByName(name string) (error, *codefreshSdk.ContextPayload)
- func (a *Api) GetGitContexts() (error, *[]codefreshSdk.ContextPayload)
- func (a *Api) HeartBeat(error string) error
- func (a *Api) SendApplicationResources(resources *codefreshSdk.ApplicationResources) error
- func (a *Api) SendEnvironment(environment codefreshSdk.Environment) (map[string]interface{}, error)
- func (a *Api) SendEvent(name string, props map[string]string) error
- func (a *Api) SendResources(kind string, items interface{}, amount int) error
- func (a *Api) UpdateIntegration(name string, host string, username string, password string, token string, ...) error
- type CodefreshApi
- type CodefreshError
Constants ¶
View Source
const ( ContinueSync = "CONTINUE_SYNC" OneTimeSync = "ONE_TIME_SYNC" SelectSync = "SELECT" None = "NONE" )
Variables ¶
This section is empty.
Functions ¶
func BuildCodefreshSdk ¶
func BuildCodefreshSdk(token string, host string) codefreshSdk.Codefresh
Types ¶
type AgentApplication ¶
type AgentProject ¶
type Api ¶
type Api struct {
Integration string
// contains filtered or unexported fields
}
func GetInstance ¶
func GetInstance() *Api
func (*Api) CreateEnvironment ¶
func (*Api) CreateIntegration ¶
func (*Api) DeleteEnvironment ¶
func (*Api) GetDefaultGitContext ¶
func (a *Api) GetDefaultGitContext() (error, *codefreshSdk.ContextPayload)
func (*Api) GetEnvironments ¶
func (a *Api) GetEnvironments() ([]codefreshSdk.CFEnvironment, error)
func (*Api) GetGitContextByName ¶
func (a *Api) GetGitContextByName(name string) (error, *codefreshSdk.ContextPayload)
func (*Api) GetGitContexts ¶
func (a *Api) GetGitContexts() (error, *[]codefreshSdk.ContextPayload)
func (*Api) SendApplicationResources ¶
func (a *Api) SendApplicationResources(resources *codefreshSdk.ApplicationResources) error
func (*Api) SendEnvironment ¶
func (a *Api) SendEnvironment(environment codefreshSdk.Environment) (map[string]interface{}, error)
func (*Api) SendResources ¶
type CodefreshApi ¶
type CodefreshApi interface {
CreateEnvironment(name string, project string, application string, namespace string) error
GetDefaultGitContext() (error, *codefreshSdk.ContextPayload)
DeleteEnvironment(name string) error
SendResources(kind string, items interface{}, amount int) error
SendEvent(name string, props map[string]string) error
HeartBeat(error string) error
GetEnvironments() ([]codefreshSdk.CFEnvironment, error)
CreateIntegration(name string, host string, username string, password string, token string, serverVersion string, provider string, clusterName string) error
UpdateIntegration(name string, host string, username string, password string, token string, serverVersion string, provider string, clusterName string) error
SendEnvironment(environment codefreshSdk.Environment) (map[string]interface{}, error)
SendApplicationResources(resources *codefreshSdk.ApplicationResources) error
GetGitContextByName(name string) (error, *codefreshSdk.ContextPayload)
GetGitContexts() (error, *[]codefreshSdk.ContextPayload)
}
Click to show internal directories.
Click to hide internal directories.