Documentation ¶
Index ¶
- type ResourceClass
- type Runner
- func (r *Runner) CreateResourceClass(resourceClass, desc string) (rc *ResourceClass, err error)
- func (r *Runner) CreateToken(resourceClass, nickname string) (token *Token, err error)
- func (r *Runner) DeleteResourceClass(id string, force bool) error
- func (r *Runner) DeleteToken(id string) error
- func (r *Runner) GetNamespaceByResourceClass(resourceClass string) (ns string, err error)
- func (r *Runner) GetResourceClassByName(resourceClass string) (rc *ResourceClass, err error)
- func (r *Runner) GetResourceClassesByNamespace(namespace string) ([]ResourceClass, error)
- func (r *Runner) GetRunnerInstances(query string) ([]RunnerInstance, error)
- func (r *Runner) GetRunnerTokensByResourceClass(resourceClass string) ([]Token, error)
- type RunnerInstance
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceClass ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) CreateResourceClass ¶
func (r *Runner) CreateResourceClass(resourceClass, desc string) (rc *ResourceClass, err error)
func (*Runner) CreateToken ¶
func (*Runner) DeleteResourceClass ¶
func (*Runner) DeleteToken ¶
func (*Runner) GetNamespaceByResourceClass ¶ added in v0.1.16508
func (*Runner) GetResourceClassByName ¶ added in v0.1.10458
func (r *Runner) GetResourceClassByName(resourceClass string) (rc *ResourceClass, err error)
func (*Runner) GetResourceClassesByNamespace ¶
func (r *Runner) GetResourceClassesByNamespace(namespace string) ([]ResourceClass, error)
func (*Runner) GetRunnerInstances ¶ added in v0.1.10642
func (r *Runner) GetRunnerInstances(query string) ([]RunnerInstance, error)
type RunnerInstance ¶ added in v0.1.10642
type RunnerInstance struct { ResourceClass string `json:"resource_class,omitempty"` Hostname string `json:"hostname"` Name string `json:"name"` FirstConnected *time.Time `json:"first_connected"` LastConnected *time.Time `json:"last_connected"` LastUsed *time.Time `json:"last_used"` IP string `json:"ip,omitempty"` Version string `json:"version"` }
Click to show internal directories.
Click to hide internal directories.