# Packages
No description provided by the author
# Functions
AppendQuery returns an option function that can modify an URI by appending a map of url query values.
No description provided by the author
New creates a new APISet instance.
NewAPIHandler returns a new APIHandler.
NewAPIHandlerWithHTTPClient returns a new APIHandler using the specified http.Client.
NewAuthenticatedAPIHandler returns a new APIHandler that authenticates at the api-service endpoint via the provided token.
NewAuthenticatedAuthHandler returns a new AuthHandler that authenticates at the endpoint via the provided token.
NewAuthenticatedEventHandler returns a new EventHandler that authenticates at the endpoint via the provided token.
NewAuthenticatedLogHandler returns a new LogHandler that authenticates at the endpoint via the provided token.
NewAuthenticatedProjectHandler returns a new ProjectHandler that authenticates at the api via the provided token and sends all requests directly to the resource-service.
NewAuthenticatedResourceHandler returns a new ResourceHandler that authenticates at the api via the provided token and sends all requests directly to the resource-service.
NewAuthenticatedSecretHandler returns a new SecretHandler that authenticates at the api via the provided token and sends all requests directly to the secret-service.
NewAuthenticatedSequenceControlHandler returns a new SequenceControlHandler that authenticates at the api via the provided token.
NewAuthenticatedServiceHandler returns a new ServiceHandler that authenticates at the api via the provided token and sends all requests directly to the resource-service.
NewAuthenticatedShipyardControllerHandler returns a new ShipyardControllerHandler that authenticates at the api via the provided token and sends all requests directly to the resource-service.
NewAuthenticatedStageHandler returns a new StageHandler that authenticates at the api via the provided token and sends all requests directly to the resource-service.
NewAuthenticatedUniformHandler returns a new UniformHandler that authenticates at the api via the provided token.
NewAuthHandler returns a new AuthHandler.
NewAuthHandlerWithHTTPClient returns a new AuthHandler using the specified http.Client.
NewConfigurableSleeper creates a new instance of a configurable sleeper which will pause execution of the current thread for a given duration.
NewEventHandler returns a new EventHandler.
NewEventHandlerWithHTTPClient returns a new EventHandler using the specified http.Client.
NewEventWatcher creates a new event watcher with the given options.
NewFakeSleeper creates a new instance of a FakeSleeper.
NewInternal creates a new InternalAPISet usable for calling Keptn services from within the control plane.
NewLogHandler returns a new LogHandler.
NewLogHandlerWithHTTPClient returns a new LogHandler that uses the specified http.Client.
NewProjectHandler returns a new ProjectHandler which sends all requests directly to the resource-service.
NewProjectHandlerWithHTTPClient returns a new ProjectHandler which sends all requests directly to the resource-service using the specified http.Client.
NewResourceHandler returns a new ResourceHandler which sends all requests directly to the resource-service.
NewResourceHandlerWithHTTPClient returns a new ResourceHandler which sends all requests directly to the resource-service using the specified http.Client.
NewResourceScope returns an empty ResourceScope to fill in calling Project Stage Service or Resource functions.
NewSecretHandler returns a new SecretHandler which sends all requests directly to the secret-service.
NewSecretHandlerWithHTTPClient returns a new SecretHandler which sends all requests directly to the secret-service using the specified http.Client.
NewSequenceControlHandlerWithHTTPClient returns a new SequenceControlHandler.
NewSequenceControlHandlerWithHTTPClient returns a new SequenceControlHandler using the specified http.Client.
NewServiceHandler returns a new ServiceHandler which sends all requests directly to the resource-service.
NewServiceHandlerWithHTTPClient returns a new ServiceHandler which sends all requests directly to the resource-service using the specified http.Client.
NewShipyardControllerHandler returns a new ShipyardControllerHandler which sends all requests directly to the resource-service.
NewShipyardControllerHandlerWithHTTPClient returns a new ShipyardControllerHandler which sends all requests directly to the resource-service using the specified http.Client.
NewStageHandler returns a new StageHandler which sends all requests directly to the resource-service.
NewStageHandlerWithHTTPClient returns a new StageHandler which sends all requests directly to the resource-service using the specified http.Client.
NewUniformHandler returns a new UniformHandler.
NewUniformHandlerWithHTTPClient returns a new UniformHandler using the specified http.Client.
No description provided by the author
SortByTime sorts the event slice by time (oldest to newest).
WithAuthToken sets the given auth token.
WithEventFilter configures the EventWatcher to use a filter.
WithHTTPClient configures a custom http client to use.
WithInterval configures the EventWatcher to use a custom delay between each query You can use this to overwrite the default which is 10 * time.Second.
WithScheme sets the scheme If this option is not used, then default scheme "http" is used by the APISet.
WithStartTime configures the EventWatcher to use a specific start timestamp for the first query.
WithTimeout configures the EventWatcher to use a custom timeout specifying after which duration the watcher shall stop.
# Constants
No description provided by the author
No description provided by the author
ErrWithStatusCode message.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
DefaultInClusterAPIMappings gives you the default InClusterAPIMappings.
No description provided by the author
# Structs
APICreateProjectOptions are options for APIInterface.CreateProject().
APICreateServiceOptions are options for APIInterface.CreateService().
APIDeleteProjectOptions are options for APIInterface.DeleteProject().
APIDeleteServiceOptions are options for APIInterface.DeleteService().
APIGetMetadataOptions are options for APIInterface.GetMetadata().
No description provided by the author
APISendEventOptions are options for APIInterface.SendEvent().
APISet contains the API utils for all Keptn APIs.
APITriggerEvaluationOptions are options for APIInterface.TriggerEvaluation().
APIUpdateProjectOptions are options for APIInterface.UpdateProject().
AuthAuthenticateOptions are options for AuthInterface.Authenticate().
No description provided by the author
ConfigurableSleeper is an implementation of a sleeper that can be configured to sleep for a specific duration.
EventFilter allows to filter events based on the provided properties.
No description provided by the author
EventsGetEventsOptions are options for EventsInterface.GetEvents().
EventsGetEventsWithRetryOptions are options for EventsInterface.GetEventsWithRetry().
EventWatcher implements the logic to query for events and provide them to the client.
FakeSleeper is a sleeper that does not sleep.
InternalAPIHandler is used instead of APIHandler from go-utils because we cannot support (unauthenticated) internal calls to the api-service at the moment.
InternalAPISet is an implementation of KeptnInterface which can be used from within the Keptn control plane.
No description provided by the author
LogsDeleteLogsOptions are options for LogsInterface.DeleteLogs().
LogsFlushOptions are options for LogsInterface.Flush().
LogsGetLogsOptions are options for LogsInterface.GetLogs().
LogsLogOptions are options for LogsInterface.Log().
LogsStartOptions are options for LogsInterface.Start().
ProjectHandler handles projects.
ProjectsCreateProjectOptions are options for ProjectsInterface.CreateProject().
ProjectsDeleteProjectOptions are options for ProjectsInterface.DeleteProject().
ProjectsGetAllProjectsOptions are options for ProjectsInterface.GetAllProjects().
ProjectsGetProjectOptions are options for ProjectsInterface.GetProject().
ProjectsUpdateConfigurationServiceProjectOptions are options for ProjectsInterface.UpdateConfigurationServiceProject().
ResourceHandler handles resources.
ResourceScope contains the necessary information to get a resource.
ResourcesCreateProjectResourcesOptions are options for ResourcesInterface.CreateProjectResources().
ResourcesCreateResourceOptions are options for ResourcesInterface.CreateResource().
ResourcesCreateResourcesOptions are options for ResourcesInterface.CreateResources().
ResourcesDeleteResourceOptions are options for ResourcesInterface.DeleteResource().
ResourcesGetAllServiceResourcesOptions are options for ResourcesInterface.GetAllServiceResources().
ResourcesGetAllStageResourcesOptions are options for ResourcesInterface.GetAllStageResources().
ResourcesGetResourceOptions are options for ResourcesInterface.GetResource().
ResourcesUpdateProjectResourcesOptions are options for ResourcesInterface.UpdateProjectResources().
ResourcesUpdateResourceOptions are options for ResourcesInterface.UpdateResource().
ResourcesUpdateServiceResourcesOptions are options for ResourcesInterface.UpdateServiceResources().
SecretHandler handles secrets.
SecretsCreateSecretOptions are options for SecretsInterface.CreateSecret().
SecretsDeleteSecretOptions are options for SecretsInterface.DeleteSecret().
SecretsGetSecretsOptions are options for SecretsInterface.GetSecrets().
SecretsUpdateSecretOptions are options for SecretsInterface.UpdateSecret().
No description provided by the author
No description provided by the author
No description provided by the author
SequencesControlSequenceOptions are options for SequencesInterface.ControlSequence().
ServiceHandler handles services.
ServicesCreateServiceInStageOptions are options for ServicesInterface.CreateServiceInStage().
ServicesDeleteServiceFromStageOptions are options for ServicesInterface.DeleteServiceFromStage().
ServicesGetAllServicesOptions are options for ServicesInterface.GetAllServices().
ServicesGetServiceOptions are options for ServicesInterface.GetService().
ShipyardControlGetOpenTriggeredEventsOptions are options for ShipyardControlInterface.GetOpenTriggeredEvents().
No description provided by the author
StageHandler handles stages.
StagesCreateStageOptions are options for StagesInterface.CreateStage().
StagesGetAllStagesOptions are options for StagesInterface.GetAllStages().
No description provided by the author
UniformCreateSubscriptionOptions are options for UniformInterface.CreateSubscription().
UniformGetRegistrationsOptions are options for UniformInterface.GetRegistrations().
No description provided by the author
UniformPingOptions are options for UniformInterface.Ping().
UniformRegisterIntegrationOptions are options for UniformInterface.RegisterIntegration().
UniformUnregisterIntegrationOptions are options for UniformInterface.UnregisterIntegration().
# Interfaces
No description provided by the author
APIService represents the interface for accessing the configuration service.
No description provided by the author
EventHandlerInterface is the api to fetch events from the event store.
No description provided by the author
No description provided by the author
go:generate moq -pkg utils_mock -skip-ensure -out ./fake/log_handler_mock.go .
No description provided by the author
go:generate moq -pkg utils_mock -skip-ensure -out ./fake/resources_handler_mock.go .
go:generate moq -pkg utils_mock -skip-ensure -out ./fake/secret_handler_mock.go .
No description provided by the author
No description provided by the author
No description provided by the author
Sleeper defines the interface to sleep.
No description provided by the author
No description provided by the author
# Type aliases
EventManipulatorFunc can be used to manipulate a slice of events.
EventWatcherOption can be used to configure the EventWatcher.
InClusterAPIMappings maps a keptn service name to its reachable domain name.
InternalService is used to enumerate internal Keptn services.
URIOption returns a function that modifies an url.