Documentation ¶
Index ¶
- func ResolveXipIo(network, addr string) (net.Conn, error)
- func ResolveXipIoWithContext(ctx context.Context, network, addr string) (net.Conn, error)
- type APIService
- type AuthHandler
- type EventHandler
- type ProjectHandler
- func (p *ProjectHandler) CreateConfigurationServiceProject(project models.Project) (*models.EventContext, *models.Error)
- func (p *ProjectHandler) CreateProject(project models.CreateProject) (*models.EventContext, *models.Error)
- func (p *ProjectHandler) DeleteProject(project models.Project) (*models.EventContext, *models.Error)
- func (p *ProjectHandler) GetProject(project models.Project) (*models.Project, *models.Error)
- type ResourceHandler
- func (r *ResourceHandler) CreateProjectResources(project string, resources []*models.Resource) (string, error)
- func (r *ResourceHandler) CreateResources(project string, stage string, service string, resources []*models.Resource) (*models.EventContext, *models.Error)
- func (r *ResourceHandler) CreateServiceResources(project string, stage string, service string, resources []*models.Resource) (string, error)
- func (r *ResourceHandler) CreateStageResources(project string, stage string, resources []*models.Resource) (string, error)
- func (r *ResourceHandler) DeleteProjectResource(project string, resourceURI string) error
- func (r *ResourceHandler) DeleteServiceResource(project string, stage string, service string, resourceURI string) error
- func (r *ResourceHandler) DeleteStageResource(project string, stage string, resourceURI string) error
- func (r *ResourceHandler) GetAllServiceResources(project string, stage string, service string) ([]*models.Resource, error)
- func (r *ResourceHandler) GetAllStageResources(project string, stage string) ([]*models.Resource, error)
- func (r *ResourceHandler) GetProjectResource(project string, resourceURI string) (*models.Resource, error)
- func (r *ResourceHandler) GetServiceResource(project string, stage string, service string, resourceURI string) (*models.Resource, error)
- func (r *ResourceHandler) GetStageResource(project string, stage string, resourceURI string) (*models.Resource, error)
- func (r *ResourceHandler) UpdateProjectResource(project string, resource *models.Resource) (string, error)
- func (r *ResourceHandler) UpdateProjectResources(project string, resources []*models.Resource) (string, error)
- func (r *ResourceHandler) UpdateServiceResource(project string, stage string, service string, resource *models.Resource) (string, error)
- func (r *ResourceHandler) UpdateServiceResources(project string, stage string, service string, resources []*models.Resource) (string, error)
- func (r *ResourceHandler) UpdateStageResource(project string, stage string, resource *models.Resource) (string, error)
- func (r *ResourceHandler) UpdateStageResources(project string, stage string, resources []*models.Resource) (string, error)
- type ServiceHandler
- func (s *ServiceHandler) CreateService(project string, service models.CreateService) (*models.EventContext, *models.Error)
- func (s *ServiceHandler) CreateServiceInStage(project string, stage string, serviceName string) (*models.EventContext, *models.Error)
- func (s *ServiceHandler) GetAllServices(project string, stage string) ([]*models.Service, error)
- type StageHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveXipIo ¶ added in v0.2.4
ResolveXipIo resolves a xip io address
Types ¶
type APIService ¶
type APIService interface {
// contains filtered or unexported methods
}
APIService represents the interface for accessing the configuration service
type AuthHandler ¶
type AuthHandler struct { BaseURL string AuthToken string AuthHeader string HTTPClient *http.Client Scheme string }
AuthHandler handles projects
func NewAuthHandler ¶
func NewAuthHandler(baseURL string) *AuthHandler
NewAuthHandler returns a new AuthHandler
func NewAuthenticatedAuthHandler ¶
func NewAuthenticatedAuthHandler(baseURL string, authToken string, authHeader string, httpClient *http.Client, scheme string) *AuthHandler
NewAuthenticatedAuthHandler returns a new AuthHandler that authenticates at the endpoint via the provided token
func (*AuthHandler) Authenticate ¶
func (a *AuthHandler) Authenticate() (*models.EventContext, *models.Error)
Authenticate authenticates the client request against the server
type EventHandler ¶
type EventHandler struct { BaseURL string AuthToken string AuthHeader string HTTPClient *http.Client Scheme string }
EventHandler handles services
func NewAuthenticatedEventHandler ¶
func NewAuthenticatedEventHandler(baseURL string, authToken string, authHeader string, httpClient *http.Client, scheme string) *EventHandler
NewAuthenticatedEventHandler returns a new EventHandler that authenticates at the endpoint via the provided token
func NewEventHandler ¶
func NewEventHandler(baseURL string) *EventHandler
NewEventHandler returns a new EventHandler
func (*EventHandler) GetEvent ¶
func (e *EventHandler) GetEvent(keptnContext string, eventType string) (*models.KeptnContextExtendedCE, *models.Error)
GetEvent returns an event specified by keptnContext and eventType
func (*EventHandler) SendEvent ¶
func (e *EventHandler) SendEvent(event models.KeptnContextExtendedCE) (*models.EventContext, *models.Error)
SendEvent sends an event to Keptn
type ProjectHandler ¶
type ProjectHandler struct { BaseURL string AuthToken string AuthHeader string HTTPClient *http.Client Scheme string }
ProjectHandler handles projects
func NewAuthenticatedProjectHandler ¶
func NewAuthenticatedProjectHandler(baseURL string, authToken string, authHeader string, httpClient *http.Client, scheme string) *ProjectHandler
NewAuthenticatedProjectHandler returns a new ProjectHandler that authenticates at the endpoint via the provided token
func NewProjectHandler ¶
func NewProjectHandler(baseURL string) *ProjectHandler
NewProjectHandler returns a new ProjectHandler
func (*ProjectHandler) CreateConfigurationServiceProject ¶ added in v0.6.2
func (p *ProjectHandler) CreateConfigurationServiceProject(project models.Project) (*models.EventContext, *models.Error)
func (*ProjectHandler) CreateProject ¶
func (p *ProjectHandler) CreateProject(project models.CreateProject) (*models.EventContext, *models.Error)
CreateProject creates a new project
func (*ProjectHandler) DeleteProject ¶
func (p *ProjectHandler) DeleteProject(project models.Project) (*models.EventContext, *models.Error)
DeleteProject deletes a project
func (*ProjectHandler) GetProject ¶
GetProject returns a project
type ResourceHandler ¶
type ResourceHandler struct { BaseURL string AuthToken string AuthHeader string HTTPClient *http.Client Scheme string }
ResourceHandler handles resources
func NewAuthenticatedResourceHandler ¶
func NewAuthenticatedResourceHandler(baseURL string, authToken string, authHeader string, httpClient *http.Client, scheme string) *ResourceHandler
NewAuthenticatedResourceHandler returns a new ResourceHandler that authenticates at the endpoint via the provided token
func NewResourceHandler ¶
func NewResourceHandler(baseURL string) *ResourceHandler
NewResourceHandler returns a new ResourceHandler
func (*ResourceHandler) CreateProjectResources ¶ added in v0.6.2
func (r *ResourceHandler) CreateProjectResources(project string, resources []*models.Resource) (string, error)
CreateProjectResources creates multiple project resources
func (*ResourceHandler) CreateResources ¶ added in v0.6.0
func (r *ResourceHandler) CreateResources(project string, stage string, service string, resources []*models.Resource) (*models.EventContext, *models.Error)
CreateResources creates a resource for the specified entity
func (*ResourceHandler) CreateServiceResources ¶
func (r *ResourceHandler) CreateServiceResources(project string, stage string, service string, resources []*models.Resource) (string, error)
CreateServiceResources creates a service resource
func (*ResourceHandler) CreateStageResources ¶ added in v0.6.2
func (r *ResourceHandler) CreateStageResources(project string, stage string, resources []*models.Resource) (string, error)
CreateStageResources creates a stage resource
func (*ResourceHandler) DeleteProjectResource ¶ added in v0.6.2
func (r *ResourceHandler) DeleteProjectResource(project string, resourceURI string) error
DeleteProjectResource deletes a project resource
func (*ResourceHandler) DeleteServiceResource ¶ added in v0.6.2
func (r *ResourceHandler) DeleteServiceResource(project string, stage string, service string, resourceURI string) error
DeleteServiceResource deletes a service resource
func (*ResourceHandler) DeleteStageResource ¶ added in v0.6.2
func (r *ResourceHandler) DeleteStageResource(project string, stage string, resourceURI string) error
DeleteStageResource deletes a stage resource
func (*ResourceHandler) GetAllServiceResources ¶ added in v0.6.2
func (r *ResourceHandler) GetAllServiceResources(project string, stage string, service string) ([]*models.Resource, error)
GetAllServiceResources returns a list of all resources.
func (*ResourceHandler) GetAllStageResources ¶ added in v0.6.2
func (r *ResourceHandler) GetAllStageResources(project string, stage string) ([]*models.Resource, error)
GetAllStageResources returns a list of all resources.
func (*ResourceHandler) GetProjectResource ¶ added in v0.6.2
func (r *ResourceHandler) GetProjectResource(project string, resourceURI string) (*models.Resource, error)
GetProjectResource retrieves a project resource from the configuration service
func (*ResourceHandler) GetServiceResource ¶ added in v0.6.2
func (r *ResourceHandler) GetServiceResource(project string, stage string, service string, resourceURI string) (*models.Resource, error)
GetServiceResource retrieves a service resource from the configuration service
func (*ResourceHandler) GetStageResource ¶ added in v0.6.2
func (r *ResourceHandler) GetStageResource(project string, stage string, resourceURI string) (*models.Resource, error)
GetStageResource retrieves a stage resource from the configuration service
func (*ResourceHandler) UpdateProjectResource ¶ added in v0.6.2
func (r *ResourceHandler) UpdateProjectResource(project string, resource *models.Resource) (string, error)
UpdateProjectResource updates a project resource
func (*ResourceHandler) UpdateProjectResources ¶ added in v0.6.2
func (r *ResourceHandler) UpdateProjectResources(project string, resources []*models.Resource) (string, error)
UpdateProjectResources updates multiple project resources
func (*ResourceHandler) UpdateServiceResource ¶ added in v0.6.2
func (r *ResourceHandler) UpdateServiceResource(project string, stage string, service string, resource *models.Resource) (string, error)
UpdateServiceResource updates a service resource
func (*ResourceHandler) UpdateServiceResources ¶ added in v0.6.2
func (r *ResourceHandler) UpdateServiceResources(project string, stage string, service string, resources []*models.Resource) (string, error)
UpdateServiceResources updates multiple service resources
func (*ResourceHandler) UpdateStageResource ¶ added in v0.6.2
func (r *ResourceHandler) UpdateStageResource(project string, stage string, resource *models.Resource) (string, error)
UpdateStageResource updates a stage resource
func (*ResourceHandler) UpdateStageResources ¶ added in v0.6.2
func (r *ResourceHandler) UpdateStageResources(project string, stage string, resources []*models.Resource) (string, error)
UpdateStageResources updates multiple stage resources
type ServiceHandler ¶
type ServiceHandler struct { BaseURL string AuthToken string AuthHeader string HTTPClient *http.Client Scheme string }
ServiceHandler handles services
func NewAuthenticatedServiceHandler ¶
func NewAuthenticatedServiceHandler(baseURL string, authToken string, authHeader string, httpClient *http.Client, scheme string) *ServiceHandler
NewAuthenticatedServiceHandler returns a new ServiceHandler that authenticates at the endpoint via the provided token
func NewServiceHandler ¶
func NewServiceHandler(baseURL string) *ServiceHandler
NewServiceHandler returns a new ServiceHandler
func (*ServiceHandler) CreateService ¶
func (s *ServiceHandler) CreateService(project string, service models.CreateService) (*models.EventContext, *models.Error)
CreateService creates a new service
func (*ServiceHandler) CreateServiceInStage ¶ added in v0.6.2
func (s *ServiceHandler) CreateServiceInStage(project string, stage string, serviceName string) (*models.EventContext, *models.Error)
CreateService creates a new service
func (*ServiceHandler) GetAllServices ¶ added in v0.6.2
GetAllServices returns a list of all services.
type StageHandler ¶ added in v0.6.2
type StageHandler struct { BaseURL string AuthToken string AuthHeader string HTTPClient *http.Client Scheme string }
StageHandler handles stages
func NewAuthenticatedStageHandler ¶ added in v0.6.2
func NewAuthenticatedStageHandler(baseURL string, authToken string, authHeader string, httpClient *http.Client, scheme string) *StageHandler
NewAuthenticatedStageHandler returns a new StageHandler that authenticates at the endpoint via the provided token
func NewStageHandler ¶ added in v0.6.2
func NewStageHandler(baseURL string) *StageHandler
NewStageHandler returns a new StageHandler
func (*StageHandler) CreateStage ¶ added in v0.6.2
func (s *StageHandler) CreateStage(project string, stageName string) (*models.EventContext, *models.Error)
CreateStage creates a new stage with the provided name
func (*StageHandler) GetAllStages ¶ added in v0.6.2
func (s *StageHandler) GetAllStages(project string) ([]*models.Stage, error)
GetAllStages returns a list of all stages.