Documentation ¶
Index ¶
- Variables
- type Store
- func (s *Store) EnsureExists(obj client.Object) error
- func (s *Store) EnsureNotExists(obj client.Object) error
- func (s *Store) Get(ctx context.Context, key client.ObjectKey, obj client.Object, ...) error
- func (s *Store) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound error = fmt.Errorf("obj not found")
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Get ¶
func (s *Store) Get(ctx context.Context, key client.ObjectKey, obj client.Object, _ ...client.GetOption) error
Get retrieves an obj for the given object key from the Kubernetes Cluster. obj must be a struct pointer so that obj can be updated with the response returned by the Server.
func (*Store) List ¶
func (s *Store) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List retrieves list of objects for a given namespace and list options. On a successful call, Items field in the list will be populated with the result returned from the server.
Click to show internal directories.
Click to hide internal directories.