Documentation ¶
Overview ¶
Package remoteenv contains components for accessing/modifying Remote Environment CRD
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { Update(*v1alpha1.RemoteEnvironment) (*v1alpha1.RemoteEnvironment, error) Get(name string, options v1.GetOptions) (*v1alpha1.RemoteEnvironment, error) }
Manager contains operations for managing Remote Environment CRD
type Service ¶
type Service struct { // Mapped to id in Remote Environment CRD ID string // Mapped to displayName in Remote Environment CRD DisplayName string // Mapped to longDescription in Remote Environment CRD LongDescription string // Mapped to providerDisplayName in Remote Environment CRD ProviderDisplayName string // Mapped to tags in Remote Environment 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 Remote Environment RE
type ServiceAPI ¶
type ServiceAPI struct { GatewayURL string AccessLabel string TargetUrl string OauthUrl string CredentialsSecretName string }
ServiceAPI stores information needed to call an API
type ServiceRepository ¶
type ServiceRepository interface { Create(remoteEnvironment string, service Service) apperrors.AppError Get(remoteEnvironment, id string) (Service, apperrors.AppError) GetAll(remoteEnvironment string) ([]Service, apperrors.AppError) Update(remoteEnvironment string, service Service) apperrors.AppError Delete(remoteEnvironment, id string) apperrors.AppError }
ServiceRepository contains operations for managing services stored in Remote Environment CRD
func NewServiceRepository ¶
func NewServiceRepository(reManager Manager) ServiceRepository
NewServiceRepository creates a new RemoteEnvironmentServiceRepository
Click to show internal directories.
Click to hide internal directories.