Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
Config represent the input parameters that New takes to produce a valid appcatalog getter Service.
type GetOptions ¶
type GetOptions struct {
Name string
}
GetOptions are the parameters that the Get method takes.
type Interface ¶
type Interface interface {
Get(context.Context, GetOptions) (*applicationv1alpha1.AppCatalog, error)
}
Interface represents the contract for the appcatalog data service. Using this instead of a regular 'struct' makes mocking the service in tests much simpler.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the object we'll hang the appcatalog getter methods on.
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, options GetOptions) (*applicationv1alpha1.AppCatalog, error)
Get fetches an AppCatalog CR by name.
Click to show internal directories.
Click to hide internal directories.