keptn

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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"`
}

func (*Config) Validate

func (k *Config) Validate() error

type Git

type Git struct {
	URL   string
	Token string
	User  string
}

type Keptn

type Keptn struct {
	// contains filtered or unexported fields
}

func New

func New(url, namespace, secretName string, git *Git) (*Keptn, error)

func (*Keptn) AddResourceToAllStages

func (k *Keptn) AddResourceToAllStages(service, project, resourceName, resourceContent string) error

func (*Keptn) AddResourceToStage

func (k *Keptn) AddResourceToStage(service, project, stage, resourceURI, resourceContent string) error

func (*Keptn) ConfigureMonitoring

func (k *Keptn) ConfigureMonitoring(project, service, monitoringType string) error

func (*Keptn) CreateOrUpdateProject

func (k *Keptn) CreateOrUpdateProject(project string, shipyard string) error

func (*Keptn) CreateService

func (k *Keptn) CreateService(service, project string) error

func (*Keptn) DeleteProject

func (k *Keptn) DeleteProject(project string) error

func (*Keptn) GetEvents

func (k *Keptn) GetEvents(service, project, keptnCtx string) error

func (*Keptn) TriggerEvaluation

func (k *Keptn) TriggerEvaluation(service, project, timeframe string) (string, error)

type KeptnAPIToken

type KeptnAPIToken struct {
	SecretRef *corev1.ObjectReference `json:"secretRef,omitempty"`
}

Jump to

Keyboard shortcuts

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