Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Git
- type Keptn
- func (k *Keptn) AddResourceToAllStages(service, project, resourceName, resourceContent string) error
- func (k *Keptn) AddResourceToStage(service, project, stage, resourceURI, resourceContent string) error
- func (k *Keptn) ConfigureMonitoring(project, service, monitoringType string) error
- func (k *Keptn) CreateOrUpdateProject(project string, shipyard string) error
- func (k *Keptn) CreateService(service, project string) error
- func (k *Keptn) DeleteProject(project string) error
- func (k *Keptn) GetEvents(service, project, keptnCtx string) error
- func (k *Keptn) TriggerEvaluation(service, project, timeframe string) (string, error)
- type KeptnAPIToken
Constants ¶
View Source
const ( ShipyardFileName string = "shipyard.yaml" KeptnConfigFileName string = "keptn-config.json" KeptnAuthTokenKey string = "x-token" HTTPTransportProtocol string = "http" )
Variables ¶
View Source
var ( ErrFailedDeleteProject = fmt.Errorf("failed to delete project") ErrEvaluationFailed = fmt.Errorf("evaluation result shows failure") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { URL string `json:"url,omitempty"` Namespace string `json:"namespace,omitempty"` Token KeptnAPIToken `json:"token,omitempty"` Timeframe string `json:"timeframe,omitempty"` }
type Keptn ¶
type Keptn struct {
// contains filtered or unexported fields
}
func (*Keptn) AddResourceToAllStages ¶
func (*Keptn) AddResourceToStage ¶
func (*Keptn) ConfigureMonitoring ¶
func (*Keptn) CreateOrUpdateProject ¶
func (*Keptn) CreateService ¶
func (*Keptn) DeleteProject ¶
type KeptnAPIToken ¶
type KeptnAPIToken struct {
SecretRef *corev1.ObjectReference `json:"secretRef,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.