Documentation ¶
Index ¶
- type REST
- func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *REST) List(ctx context.Context, options *metaInternalVersion.ListOptions) (runtime.Object, error)
- func (r *REST) NamespaceScoped() bool
- func (r *REST) New() runtime.Object
- func (r *REST) NewList() runtime.Object
- func (r *REST) ShortNames() []string
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REST ¶
REST implements pkg/api/rest.StandardStorage.
func (*REST) Get ¶
func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get finds a resource in the storage by name and returns it.
func (*REST) List ¶
func (r *REST) List(ctx context.Context, options *metaInternalVersion.ListOptions) (runtime.Object, error)
List selects resources in the storage which match to the selector. 'options' can be nil.
func (*REST) NamespaceScoped ¶
NamespaceScoped returns if the object must be in a namespace.
func (*REST) New ¶
New returns an empty object that can be used with Create and Update after request data has been put into it.
func (*REST) ShortNames ¶
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
type Storage ¶
type Storage struct {
ComponentStatus *REST
}
Storage includes storage for resources.
func NewStorage ¶
func NewStorage(_ genericregistry.RESTOptionsGetter, platformClient platforminternalclient.PlatformInterface) *Storage
NewStorage returns a Storage object that will work against resources.
Click to show internal directories.
Click to hide internal directories.