Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(resource storage.UnknownResource) (err error)
Validate checks whether the specified resource represents a valid resource.
Types ¶
type ClusterOperationHandler ¶
type ClusterOperationHandler interface { // RemoveResource removes the specified resource RemoveResource(resources.RemoveRequest) error // UpdateResource creates or updates the specified resource UpdateResource(resources.CreateRequest) error }
ClusterOperationHandler defines a service to manage resources based on cluster operations
type Config ¶
type Config struct { // Operator is local cluster ops client Operator ops.Operator // CurrentUser is the currently logged in user CurrentUser string // Silent provides methods for printing localenv.Silent // ClusterOperationHandler specifies the optional handler // for resources that require special handling ClusterOperationHandler }
Config is gravity resource controller configuration
type Resources ¶
type Resources struct { // Config is the controller configuration Config // Log is used for logging. Log logrus.FieldLogger }
Resources is a controller that manages cluster local resources
func (*Resources) GetCollection ¶
func (r *Resources) GetCollection(req resources.ListRequest) (resources.Collection, error)
GetCollection retrieves a collection of specified resources
type Suite ¶
type Suite struct { // Services is a set of initialized test services Services opsservice.TestServices // Handler is the initializes operator web handler Handler *opshandler.WebHandler // Creds is the credentials for the test cluster admin agent Creds *storage.LoginEntry }
Suite is the gravity resource controller test suite helper
Click to show internal directories.
Click to hide internal directories.