Documentation ¶
Overview ¶
Package applications contains components for accessing/modifying Application CRD
Index ¶
Constants ¶
View Source
const ( CredentialsOAuthType = "OAuth" CredentialsBasicType = "Basic" CredentialsCertificateGenType = "CertificateGen" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Manager ¶
type Manager interface { Update(application *v1alpha1.Application) (*v1alpha1.Application, error) Get(name string, options v1.GetOptions) (*v1alpha1.Application, error) }
Manager contains operations for managing Application CRD
type Service ¶
type Service struct { // Mapped to id in Application CRD ID string // Mapped to identifier in Application CRD Identifier string // Mapped to displayName in Application CRD DisplayName string // Mapped to name in Application CRD Name string // Mapped to shortDescription in Application CRD ShortDescription string // Mapped to longDescription in Application CRD LongDescription string // Mapped to labels in Application CRD Labels map[string]string // Mapped to providerDisplayName in Application CRD ProviderDisplayName string // Mapped to tags in Application CRD Tags []string // Mapped to type property under entries element (type: API) API *ServiceAPI // Mapped to type property under entries element (type: Events) Events bool }
Service represents a service stored in Application RE
type ServiceAPI ¶
type ServiceAPI struct { GatewayURL string AccessLabel string TargetUrl string SpecificationUrl string ApiType string Credentials Credentials RequestParametersSecretName string }
ServiceAPI stores information needed to call an API
type ServiceRepository ¶
type ServiceRepository interface { Create(application string, service Service) apperrors.AppError Get(application, id string) (Service, apperrors.AppError) GetAll(application string) ([]Service, apperrors.AppError) Update(application string, service Service) apperrors.AppError Delete(application, id string) apperrors.AppError }
ServiceRepository contains operations for managing services stored in Application CRD
func NewServiceRepository ¶
func NewServiceRepository(reManager Manager) ServiceRepository
NewServiceRepository creates a new ApplicationServiceRepository
Click to show internal directories.
Click to hide internal directories.