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 app getter Service.
type GetOptions ¶
GetOptions are the parameters that the Get method takes.
type Interface ¶
type Interface interface { Get(context.Context, GetOptions) (*applicationv1alpha1.App, error) List(context.Context, ListOptions) (*applicationv1alpha1.AppList, error) }
Interface represents the contract for the app data service. Using this instead of a regular 'struct' makes mocking the service in tests much simpler.
type ListOptions ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the object we'll hang the app getter methods on.
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, options GetOptions) (*applicationv1alpha1.App, error)
Get fetches an App CR by name and namespace.
func (*Service) List ¶
func (s *Service) List(ctx context.Context, options ListOptions) (*applicationv1alpha1.AppList, error)
List returns a list of App CRs in a namespace, optionally filtered by a label selector.
Click to show internal directories.
Click to hide internal directories.