Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { // TargetUrl points to API. TargetUrl string // Credentials is a credentials of API. Credentials *Credentials // Spec contains specification of an API. Spec []byte }
API is an internal representation of a service's API.
type Credentials ¶
type Credentials struct { // Oauth is OAuth configuration. Oauth Oauth }
Credentials contains OAuth configuration.
type Oauth ¶
type Oauth struct { // URL to OAuth token provider. URL string // ClientID to use for authentication. ClientID string // ClientSecret to use for authentication. ClientSecret string }
Oauth contains details of OAuth configuration
type Service ¶
type Service interface { // New handles a new API. It creates all requires resources. New(remoteEnvironment, id string, api *API) (*remoteenv.ServiceAPI, apperrors.AppError) // Read reads API from Remote Environment API definition. It also reads all additional information. Read(remoteEnvironment string, serviceApi *remoteenv.ServiceAPI) (*API, apperrors.AppError) // Delete removes API with given id. Delete(remoteEnvironment, id string) apperrors.AppError // Update replaces existing API with a new one. Update(remoteEnvironment, id string, api *API) (*remoteenv.ServiceAPI, apperrors.AppError) }
Service manages API definition of a service
func NewService ¶
func NewService( nameResolver k8sconsts.NameResolver, accessServiceManager accessservice.AccessServiceManager, secretsRepository secrets.Repository, istioService istio.Service) Service
Click to show internal directories.
Click to hide internal directories.