Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKeptnAPI ¶
Types ¶
type HTTPClientGetter ¶
HTTPClientGetter is responsible for creating an HTTP client
func CreateClientGetter ¶
func CreateClientGetter(envConfig config.EnvConfig) HTTPClientGetter
CreateClientGetter returns a HTTPClientGetter implementation based on the values certain properties inside the given env configuration
type Initializer ¶
type Initializer struct { Remote func(baseURL string, options ...func(*keptnapi.APISet)) (*keptnapi.APISet, error) Internal func(client *http.Client, apiMappings ...api.InClusterAPIMappings) (*api.InternalAPISet, error) }
Initializer implements both methods of creating a new keptn API with internal or remote execution plane
type OAuthClientGetter ¶
type OAuthClientGetter struct { *SimpleClientGetter // contains filtered or unexported fields }
OAuthClientGetter creates an HTTP client configured for use with SSO/Oauth
func NewOauthClientGetter ¶
func NewOauthClientGetter(envConfig config.EnvConfig, oauthDiscovery oauthutils.OauthLocationGetter) *OAuthClientGetter
NewOauthClientGetter creates a new instance of a OAuthClientGetter
type SimpleClientGetter ¶
type SimpleClientGetter struct {
// contains filtered or unexported fields
}
SimpleClientGetter creates a basic HTTP client
func New ¶
func New(envConfig config.EnvConfig) *SimpleClientGetter
New Creates a new instance of a SimpleClientGetter
Click to show internal directories.
Click to hide internal directories.