client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ManagerName string
	Config      config.Manager
	// contains filtered or unexported fields
}

func NewClient

func NewClient(name string, cfg config.Manager, debug bool) *Client

func (*Client) CreateEnterprise

func (c *Client) CreateEnterprise(param params.CreateEnterpriseParams) (params.Enterprise, error)

func (*Client) CreateEnterprisePool

func (c *Client) CreateEnterprisePool(enterpriseID string, param params.CreatePoolParams) (params.Pool, error)

func (*Client) CreateMetricsToken

func (c *Client) CreateMetricsToken() (string, error)

func (*Client) CreateOrgPool

func (c *Client) CreateOrgPool(orgID string, param params.CreatePoolParams) (params.Pool, error)

func (*Client) CreateOrganization

func (c *Client) CreateOrganization(param params.CreateOrgParams) (params.Organization, error)

func (*Client) CreateRepoPool

func (c *Client) CreateRepoPool(repoID string, param params.CreatePoolParams) (params.Pool, error)

func (*Client) CreateRepository

func (c *Client) CreateRepository(param params.CreateRepoParams) (params.Repository, error)

func (*Client) DeleteEnterprise

func (c *Client) DeleteEnterprise(enterpriseID string) error

func (*Client) DeleteEnterprisePool

func (c *Client) DeleteEnterprisePool(enterpriseID, poolID string) error

func (*Client) DeleteOrgPool

func (c *Client) DeleteOrgPool(orgID, poolID string) error

func (*Client) DeleteOrganization

func (c *Client) DeleteOrganization(orgID string) error

func (*Client) DeletePoolByID

func (c *Client) DeletePoolByID(poolID string) error

func (*Client) DeleteRepoPool

func (c *Client) DeleteRepoPool(repoID, poolID string) error

func (*Client) DeleteRepository

func (c *Client) DeleteRepository(repoID string) error

func (*Client) DeleteRunner

func (c *Client) DeleteRunner(instanceName string) error

func (*Client) GetEnterprise

func (c *Client) GetEnterprise(enterpriseID string) (params.Enterprise, error)

func (*Client) GetEnterprisePool

func (c *Client) GetEnterprisePool(enterpriseID, poolID string) (params.Pool, error)

func (*Client) GetInstanceByName

func (c *Client) GetInstanceByName(instanceName string) (params.Instance, error)

func (*Client) GetOrgPool

func (c *Client) GetOrgPool(orgID, poolID string) (params.Pool, error)

func (*Client) GetOrganization

func (c *Client) GetOrganization(orgID string) (params.Organization, error)

func (*Client) GetPoolByID

func (c *Client) GetPoolByID(poolID string) (params.Pool, error)

func (*Client) GetRepoPool

func (c *Client) GetRepoPool(repoID, poolID string) (params.Pool, error)

func (*Client) GetRepository

func (c *Client) GetRepository(repoID string) (params.Repository, error)

func (*Client) InitManager

func (c *Client) InitManager(url string, param params.NewUserParams) (params.User, error)

func (*Client) ListAllInstances

func (c *Client) ListAllInstances() ([]params.Instance, error)

func (*Client) ListAllPools

func (c *Client) ListAllPools() ([]params.Pool, error)

func (*Client) ListCredentials

func (c *Client) ListCredentials() ([]params.GithubCredentials, error)

func (*Client) ListEnterpriseInstances

func (c *Client) ListEnterpriseInstances(enterpriseID string) ([]params.Instance, error)

func (*Client) ListEnterprisePools

func (c *Client) ListEnterprisePools(enterpriseID string) ([]params.Pool, error)

func (*Client) ListEnterprises

func (c *Client) ListEnterprises() ([]params.Enterprise, error)

func (*Client) ListOrgInstances

func (c *Client) ListOrgInstances(orgID string) ([]params.Instance, error)

func (*Client) ListOrgPools

func (c *Client) ListOrgPools(orgID string) ([]params.Pool, error)

func (*Client) ListOrganizations

func (c *Client) ListOrganizations() ([]params.Organization, error)

func (*Client) ListPoolInstances

func (c *Client) ListPoolInstances(poolID string) ([]params.Instance, error)

func (*Client) ListProviders

func (c *Client) ListProviders() ([]params.Provider, error)

func (*Client) ListRepoInstances

func (c *Client) ListRepoInstances(repoID string) ([]params.Instance, error)

func (*Client) ListRepoPools

func (c *Client) ListRepoPools(repoID string) ([]params.Pool, error)

func (*Client) ListRepositories

func (c *Client) ListRepositories() ([]params.Repository, error)

func (*Client) Login

func (c *Client) Login(url string, param params.PasswordLoginParams) (string, error)

func (*Client) UpdateEnterprisePool

func (c *Client) UpdateEnterprisePool(enterpriseID, poolID string, param params.UpdatePoolParams) (params.Pool, error)

func (*Client) UpdateOrgPool

func (c *Client) UpdateOrgPool(orgID, poolID string, param params.UpdatePoolParams) (params.Pool, error)

func (*Client) UpdatePoolByID

func (c *Client) UpdatePoolByID(poolID string, param params.UpdatePoolParams) (params.Pool, error)

func (*Client) UpdateRepoPool

func (c *Client) UpdateRepoPool(repoID, poolID string, param params.UpdatePoolParams) (params.Pool, error)

Jump to

Keyboard shortcuts

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