Documentation ¶
Overview ¶
* © 2018 SAP SE or an SAP affiliate company. * All rights reserved. * Please see http://www.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and * notices.
* © 2018 SAP SE or an SAP affiliate company. * All rights reserved. * Please see http://www.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and * notices.
* © 2018 SAP SE or an SAP affiliate company. * All rights reserved. * Please see http://www.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and * notices.
Index ¶
- Variables
- func CheckK8sChecknothing(t *testing.T, checknothing *istio.Checknothing, name string, labels Labels)
- func CheckK8sIstioDenier(t *testing.T, denier *istio.Denier, name string, labels Labels, code int, ...)
- func CheckK8sIstioRule(t *testing.T, rule *istio.Rule, name, namespace string, labels Labels)
- func CheckK8sRemoteEnvironment(t *testing.T, re *remoteenv.RemoteEnvironment, name string, ...)
- func CheckK8sRemoteEnvironmentNotContainsService(t *testing.T, re *remoteenv.RemoteEnvironment, serviceId string)
- func CheckK8sSecret(t *testing.T, secret *v1core.Secret, name string, labels Labels, ...)
- func CheckK8sService(t *testing.T, service *v1core.Service, name string, labels Labels, ...)
- type API
- type Credentials
- type DocsObject
- type Documentation
- type ErrorResponse
- type Events
- type K8sResourcesClient
- type Labels
- type MetadataServiceClient
- type Oauth
- type PostServiceResponse
- type Service
- type ServiceData
- type ServiceDetails
- type TestConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApiRawSpec = compact([]byte("{\"name\":\"api\"}")) EventsRawSpec = compact([]byte("{\"name\":\"events\"}")) )
Functions ¶
func CheckK8sChecknothing ¶
func CheckK8sIstioDenier ¶
func CheckK8sIstioRule ¶
func CheckK8sRemoteEnvironment ¶
func CheckK8sRemoteEnvironment(t *testing.T, re *remoteenv.RemoteEnvironment, name string, expectedServiceData ServiceData)
func CheckK8sRemoteEnvironmentNotContainsService ¶
func CheckK8sRemoteEnvironmentNotContainsService(t *testing.T, re *remoteenv.RemoteEnvironment, serviceId string)
func CheckK8sSecret ¶
Types ¶
type API ¶
type API struct { TargetUrl string `json:"targetUrl"` Credentials *Credentials `json:"credentials,omitempty"` Spec json.RawMessage `json:"spec,omitempty"` }
type Credentials ¶
type Credentials struct {
Oauth Oauth `json:"oauth"`
}
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 ¶
type Events ¶
type Events struct {
Spec json.RawMessage `json:"spec,omitempty"`
}
type K8sResourcesClient ¶
type K8sResourcesClient interface { GetService(name string, options v1.GetOptions) (*v1core.Service, error) GetSecret(name string, options v1.GetOptions) (*v1core.Secret, error) GetDenier(name string, options v1.GetOptions) (*v1alpha2.Denier, error) GetRule(name string, options v1.GetOptions) (*v1alpha2.Rule, error) GetChecknothing(name string, options v1.GetOptions) (*v1alpha2.Checknothing, error) GetRemoteEnvironmentServices(name string, options v1.GetOptions) (*v1alpha1.RemoteEnvironment, error) CreateDummyRemoteEnvironment(name string, options v1.GetOptions) (*v1alpha1.RemoteEnvironment, error) DeleteRemoteEnvironment(name string, options *v1.DeleteOptions) error }
func NewK8sInClusterResourcesClient ¶
func NewK8sInClusterResourcesClient(namespace string) (K8sResourcesClient, error)
type MetadataServiceClient ¶
type MetadataServiceClient interface { CreateService(t *testing.T, serviceDetails ServiceDetails) (int, *PostServiceResponse, error) UpdateService(t *testing.T, idToUpdate string, updatedServiceDetails ServiceDetails) (int, error) DeleteService(t *testing.T, idToDelete string) (int, error) GetService(t *testing.T, serviceId string) (int, *ServiceDetails, error) GetAllServices(t *testing.T) (int, []Service, error) }
func NewMetadataServiceClient ¶
func NewMetadataServiceClient(url string) MetadataServiceClient
type PostServiceResponse ¶
type PostServiceResponse struct {
ID string `json:"id"`
}
type ServiceData ¶
type ServiceDetails ¶
type TestConfig ¶
func ReadConfig ¶
func ReadConfig() (TestConfig, error)
Click to show internal directories.
Click to hide internal directories.