Documentation
¶
Index ¶
- type KubeOps
- func (k *KubeOps) CreateProject(ctx context.Context, req *api.CreateProjectRequest) (*api.CreateProjectResponse, error)
- func (k *KubeOps) GetInventory(ctx context.Context, req *api.GetInventoryRequest) (*api.GetInventoryResponse, error)
- func (k *KubeOps) GetResult(ctx context.Context, req *api.GetResultRequest) (*api.GetResultResponse, error)
- func (k *KubeOps) Health(ctx context.Context, req *api.HealthRequest) (*api.HealthResponse, error)
- func (k *KubeOps) ListProject(ctx context.Context, req *api.ListProjectRequest) (*api.ListProjectResponse, error)
- func (k *KubeOps) ListResult(ctx context.Context, req *api.ListResultRequest) (*api.ListResultResponse, error)
- func (k *KubeOps) RunAdhoc(ctx context.Context, req *api.RunAdhocRequest) (*api.RunAdhocResult, error)
- func (k *KubeOps) RunPlaybook(ctx context.Context, req *api.RunPlaybookRequest) (*api.RunPlaybookResult, error)
- func (k *KubeOps) WatchResult(req *api.WatchRequest, server api.KubeOpsApi_WatchResultServer) error
- type Pool
- type ProjectManager
- type RunnerManager
- type TaskFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeOps ¶
type KubeOps struct { api.UnimplementedKubeOpsApiServer // contains filtered or unexported fields }
func NewKubeOps ¶
func NewKubeOps() *KubeOps
func (*KubeOps) CreateProject ¶
func (k *KubeOps) CreateProject(ctx context.Context, req *api.CreateProjectRequest) (*api.CreateProjectResponse, error)
func (*KubeOps) GetInventory ¶
func (k *KubeOps) GetInventory(ctx context.Context, req *api.GetInventoryRequest) (*api.GetInventoryResponse, error)
func (*KubeOps) GetResult ¶
func (k *KubeOps) GetResult(ctx context.Context, req *api.GetResultRequest) (*api.GetResultResponse, error)
func (*KubeOps) Health ¶
func (k *KubeOps) Health(ctx context.Context, req *api.HealthRequest) (*api.HealthResponse, error)
func (*KubeOps) ListProject ¶
func (k *KubeOps) ListProject(ctx context.Context, req *api.ListProjectRequest) (*api.ListProjectResponse, error)
func (*KubeOps) ListResult ¶
func (k *KubeOps) ListResult(ctx context.Context, req *api.ListResultRequest) (*api.ListResultResponse, error)
func (*KubeOps) RunAdhoc ¶
func (k *KubeOps) RunAdhoc(ctx context.Context, req *api.RunAdhocRequest) (*api.RunAdhocResult, error)
func (*KubeOps) RunPlaybook ¶
func (k *KubeOps) RunPlaybook(ctx context.Context, req *api.RunPlaybookRequest) (*api.RunPlaybookResult, error)
func (*KubeOps) WatchResult ¶
func (k *KubeOps) WatchResult(req *api.WatchRequest, server api.KubeOpsApi_WatchResultServer) error
type ProjectManager ¶
type ProjectManager struct { }
func (ProjectManager) CreateProject ¶
func (pm ProjectManager) CreateProject(name, source string) (*api.Project, error)
func (ProjectManager) GetProject ¶
func (pm ProjectManager) GetProject(name string) (*api.Project, error)
func (ProjectManager) IsProjectExists ¶
func (pm ProjectManager) IsProjectExists(name string) (bool, error)
func (ProjectManager) SearchProjects ¶
func (pm ProjectManager) SearchProjects() ([]*api.Project, error)
type RunnerManager ¶
type RunnerManager struct {
// contains filtered or unexported fields
}
func (*RunnerManager) CreateAdhocRunner ¶
func (rm *RunnerManager) CreateAdhocRunner(pattern, module, param string) (*ansible.AdhocRunner, error)
func (*RunnerManager) CreatePlaybookRunner ¶
func (rm *RunnerManager) CreatePlaybookRunner(projectName, playbookName, tag string) (*ansible.PlaybookRunner, error)
Click to show internal directories.
Click to hide internal directories.