server

package
v1.0.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 (*KubeOps) GetInventory

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 Pool

type Pool struct {
	// contains filtered or unexported fields
}

func NewPool

func NewPool() *Pool

func (*Pool) Commit

func (p *Pool) Commit(taskFunc TaskFunc)

func (*Pool) IsEmpty

func (p *Pool) IsEmpty() bool

func (*Pool) Len

func (p *Pool) Len() int

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)

type TaskFunc

type TaskFunc func()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL