Documentation ¶
Index ¶
- func CreateCSR(subjectRaw string, key *rsa.PrivateKey) ([]byte, error)
- func CreateKey() (*rsa.PrivateKey, error)
- type API
- type ApiInfo
- type Basic
- type CSRFInfo
- type CertInfo
- type CertificateGen
- type CompassClients
- type CompassConnectorClient
- type CompassDirectorClient
- func (dc *CompassDirectorClient) GetOneTimeTokenForApplication(applicationID string) (graphql.OneTimeTokenExt, error)
- func (dc *CompassDirectorClient) RegisterApplication(in graphql.ApplicationRegisterInput) (graphql.ApplicationExt, error)
- func (dc *CompassDirectorClient) UnregisterApplication(id string) (graphql.ApplicationExt, error)
- type CompassDirectorClientState
- type ConnectorClient
- type Credentials
- type CrtResponse
- type CsrRequest
- type DocsObject
- type Documentation
- type ErrorResponse
- type EventSender
- type Events
- type ExampleEvent
- type InfoResponse
- type KymaClients
- type Oauth
- type RegisterServiceResponse
- type RegistryClient
- type RuntimeURLs
- type ServiceDetails
- type TestService
- func (ts *TestService) CreateTestService() error
- func (ts *TestService) DeleteTestService() error
- func (ts *TestService) GetInClusterTestServiceURL() string
- func (ts *TestService) GetTestServiceURL() string
- func (ts *TestService) IsReady() error
- func (ts *TestService) WaitForCounterPodToUpdateValue(val int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKey ¶
func CreateKey() (*rsa.PrivateKey, error)
Types ¶
type API ¶
type API struct { TargetUrl string `json:"targetUrl"` Credentials *Credentials `json:"credentials,omitempty"` Spec json.RawMessage `json:"spec,omitempty"` SpecificationUrl string `json:"specificationUrl,omitempty"` ApiType string `json:"apiType"` }
type ApiInfo ¶
type ApiInfo struct { *RuntimeURLs ManagementInfoURL string `json:"infoUrl"` CertificatesUrl string `json:"certificatesUrl"` }
type CertificateGen ¶
type CompassClients ¶
type CompassClients struct { DirectorClient *CompassDirectorClient ConnectorClient *CompassConnectorClient }
func InitCompassClients ¶
func InitCompassClients(kymaClients KymaClients, state CompassDirectorClientState, domain string, skipSSLVerify bool) CompassClients
type CompassConnectorClient ¶
type CompassConnectorClient struct {
// contains filtered or unexported fields
}
func NewCompassConnectorClient ¶
func NewCompassConnectorClient(skipTLSVerify bool) *CompassConnectorClient
func (*CompassConnectorClient) GenerateCertificateForToken ¶
func (cc *CompassConnectorClient) GenerateCertificateForToken(token, connectorURL string) (tls.Certificate, error)
type CompassDirectorClient ¶
type CompassDirectorClient struct {
// contains filtered or unexported fields
}
func NewCompassDirectorClientOrDie ¶
func NewCompassDirectorClientOrDie(coreClient *kubernetes.Clientset, state CompassDirectorClientState, domain string) *CompassDirectorClient
func (*CompassDirectorClient) GetOneTimeTokenForApplication ¶
func (dc *CompassDirectorClient) GetOneTimeTokenForApplication(applicationID string) (graphql.OneTimeTokenExt, error)
func (*CompassDirectorClient) RegisterApplication ¶
func (dc *CompassDirectorClient) RegisterApplication(in graphql.ApplicationRegisterInput) (graphql.ApplicationExt, error)
func (*CompassDirectorClient) UnregisterApplication ¶
func (dc *CompassDirectorClient) UnregisterApplication(id string) (graphql.ApplicationExt, error)
type ConnectorClient ¶
type ConnectorClient struct {
// contains filtered or unexported fields
}
func NewConnectorClient ¶
func NewConnectorClient(appName string, tokenRequests connectionTokenHandlerClient.TokenRequestInterface, httpClient *http.Client, logger logrus.FieldLogger) *ConnectorClient
func (*ConnectorClient) GetCertificate ¶
func (cc *ConnectorClient) GetCertificate(url string, csr []byte) ([]*x509.Certificate, error)
func (*ConnectorClient) GetInfo ¶
func (cc *ConnectorClient) GetInfo(url string) (*InfoResponse, error)
type Credentials ¶
type Credentials struct { Oauth *Oauth `json:"oauth,omitempty"` Basic *Basic `json:"basic,omitempty"` CertificateGen *CertificateGen `json:"certificateGen,omitempty"` }
type CrtResponse ¶
type CsrRequest ¶
type CsrRequest struct {
Csr string `json:"csr"`
}
type DocsObject ¶
type Documentation ¶
type Documentation struct { DisplayName string `json:"displayName"` Description string `json:"description"` Type string `json:"type"` Tags []string `json:"tags,omitempty"` Docs []DocsObject `json:"docs,omitempty"` }
type ErrorResponse ¶
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type EventSender ¶
type EventSender struct {
// contains filtered or unexported fields
}
func NewEventSender ¶
func NewEventSender(httpClient resilient.HttpClient, domain string, ceClient http2.ResilientCloudEventClient) *EventSender
func (*EventSender) SendCloudEventToMesh ¶
func (s *EventSender) SendCloudEventToMesh(ctx context.Context, event cloudevents.Event) (ct context.Context, evt *cloudevents.Event, err error)
func (*EventSender) SendEvent ¶
func (s *EventSender) SendEvent(appName string, event *ExampleEvent) error
type Events ¶
type Events struct {
Spec json.RawMessage `json:"spec,omitempty"`
}
type ExampleEvent ¶
type InfoResponse ¶
type KymaClients ¶
type KymaClients struct { AppOperatorClientset *appOperatorClient.Clientset AppBrokerClientset *appBrokerClient.Clientset KubelessClientset *kubeless.Clientset CoreClientset *coreClient.Clientset Pods v1.PodInterface EventingClientset *eventingClient.Clientset ServiceCatalogClientset *serviceCatalogClient.Clientset ServiceBindingUsageClientset *serviceBindingUsageClient.Clientset GatewayClientset *gatewayClient.Clientset }
func InitKymaClients ¶
func InitKymaClients(config *rest.Config, testID string) KymaClients
type RegisterServiceResponse ¶
type RegisterServiceResponse struct {
ID string `json:"id"`
}
type RegistryClient ¶
type RegistryClient struct {
// contains filtered or unexported fields
}
func NewRegistryClient ¶
func NewRegistryClient(url string, httpClient resilient.HttpClient) *RegistryClient
func (*RegistryClient) DeleteService ¶
func (rc *RegistryClient) DeleteService(id string) error
func (*RegistryClient) GetService ¶
func (rc *RegistryClient) GetService(id string) (*ServiceDetails, error)
func (*RegistryClient) RegisterService ¶
func (rc *RegistryClient) RegisterService(service *ServiceDetails) (string, error)
type RuntimeURLs ¶
type ServiceDetails ¶
type ServiceDetails struct { Provider string `json:"provider"` Name string `json:"name"` Description string `json:"description"` ShortDescription string `json:"shortDescription,omitempty"` Identifier string `json:"identifier,omitempty"` Labels map[string]string `json:"labels,omitempty"` Api *API `json:"api,omitempty"` Events *Events `json:"events,omitempty"` Documentation *Documentation `json:"documentation,omitempty"` }
type TestService ¶
func NewTestService ¶
func NewTestService(httpClient *http.Client, deployments appsClient.DeploymentInterface, services coreClient.ServiceInterface, apis gatewayClient.ApiInterface, domain, namespace string) *TestService
func (*TestService) CreateTestService ¶
func (ts *TestService) CreateTestService() error
func (*TestService) DeleteTestService ¶
func (ts *TestService) DeleteTestService() error
func (*TestService) GetInClusterTestServiceURL ¶
func (ts *TestService) GetInClusterTestServiceURL() string
func (*TestService) GetTestServiceURL ¶
func (ts *TestService) GetTestServiceURL() string
func (*TestService) IsReady ¶
func (ts *TestService) IsReady() error
func (*TestService) WaitForCounterPodToUpdateValue ¶
func (ts *TestService) WaitForCounterPodToUpdateValue(val int) error
Click to show internal directories.
Click to hide internal directories.