Versions in this module Expand all Collapse all v0 v0.5.0 Aug 8, 2018 Changes in this version + var ApiRawSpec = compact([]byte("{\"name\":\"api\"}")) + var EventsRawSpec = compact([]byte("{\"name\":\"events\"}")) + 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 struct + Credentials *Credentials + Spec json.RawMessage + TargetUrl string + type Credentials struct + Oauth Oauth + type DocsObject struct + Source string + Title string + Type string + type Documentation struct + Description string + DisplayName string + Docs []DocsObject + Tags []string + Type string + type ErrorResponse struct + Code int + Error string + type Events struct + Spec json.RawMessage + type K8sResourcesClient interface + CreateDummyRemoteEnvironment func(name string, options v1.GetOptions) (*v1alpha1.RemoteEnvironment, error) + DeleteRemoteEnvironment func(name string, options *v1.DeleteOptions) error + GetChecknothing func(name string, options v1.GetOptions) (*v1alpha2.Checknothing, error) + GetDenier func(name string, options v1.GetOptions) (*v1alpha2.Denier, error) + GetRemoteEnvironmentServices func(name string, options v1.GetOptions) (*v1alpha1.RemoteEnvironment, error) + GetRule func(name string, options v1.GetOptions) (*v1alpha2.Rule, error) + GetSecret func(name string, options v1.GetOptions) (*v1core.Secret, error) + GetService func(name string, options v1.GetOptions) (*v1core.Service, error) + func NewK8sInClusterResourcesClient(namespace string) (K8sResourcesClient, error) + type Labels map[string]string + type MetadataServiceClient interface + CreateService func(t *testing.T, serviceDetails ServiceDetails) (int, *PostServiceResponse, error) + DeleteService func(t *testing.T, idToDelete string) (int, error) + GetAllServices func(t *testing.T) (int, []Service, error) + GetService func(t *testing.T, serviceId string) (int, *ServiceDetails, error) + UpdateService func(t *testing.T, idToUpdate string, updatedServiceDetails ServiceDetails) (int, error) + func NewMetadataServiceClient(url string) MetadataServiceClient + type Oauth struct + ClientID string + ClientSecret string + URL string + type PostServiceResponse struct + ID string + type Service struct + Description string + ID string + Name string + Provider string + type ServiceData struct + AccessLabel string + DisplayName string + GatewayUrl string + HasAPI bool + HasEvents bool + LongDescription string + OauthUrl string + ProviderDisplayName string + ServiceId string + TargetUrl string + type ServiceDetails struct + Api *API + Description string + Documentation *Documentation + Events *Events + Name string + Provider string + type TestConfig struct + MetadataServiceUrl string + Namespace string + func ReadConfig() (TestConfig, error)