Documentation ¶
Index ¶
- type AccountService
- func (a *AccountService) AccountGet(ctx context.Context, userID string) (types.Account, error)
- func (a *AccountService) PairingTokenCreate(ctx context.Context) (code string, err error)
- func (a *AccountService) PairingTokenExchange(ctx context.Context, code string) (token string, account *types.Account, err error)
- func (a *AccountService) ProjectGet(ctx context.Context, owner, name string) (types.Project, error)
- type BuildService
- type Client
- func (c *Client) ExecuteRest(ctx context.Context, req *RestRequest, resp interface{}) error
- func (c *Client) NewAuthorizedRestRequest(rtype RestRequestType, endpoint string, query map[string]string, ...) (*RestRequest, error)
- func (c *Client) NewRestRequest(rtype RestRequestType, endpoint string, params map[string]string, ...) (*RestRequest, error)
- type Config
- type EndpointService
- func (s *EndpointService) Create(ctx context.Context, userID, projectID, execID, name string) (types.Endpoint, error)
- func (s *EndpointService) CreateVersion(ctx context.Context, userID, projectID, endpointID, execID string) (types.EndpointVersion, error)
- func (s *EndpointService) EndpointCheckStatus(ctx context.Context, userID, projectID, checkID string) (types.EndpointCheck, error)
- func (s *EndpointService) EvalAttach(ctx context.Context, userID, projectID, endpointID, evalID string) error
- func (s *EndpointService) List(ctx context.Context, userID, projectID string) ([]types.EndpointListItem, error)
- func (s *EndpointService) RunEvalCheck(ctx context.Context, userID, projectID, endpointID string) error
- type EvalService
- type ExecService
- func (s *ExecService) Create(ctx context.Context, owner, project string, params types.ExecCreateParams) (*types.Exec, error)
- func (s *ExecService) Exec(ctx context.Context, cmd []string, image string, sessionID *string) (*types.Exec, error)
- func (s *ExecService) Get(ctx context.Context, owner, project, sessionID string) (*types.Exec, error)
- func (s *ExecService) List(ctx context.Context, owner, project string, listTerminated bool) ([]types.Exec, error)
- func (s *ExecService) Terminate(ctx context.Context, owner, project, sessionID string) error
- type Execer
- type Provider
- type ProviderService
- type RestRequest
- type RestRequestType
- type SSHKeyService
- func (s *SSHKeyService) Add(ctx context.Context, owner string, params types.SSHKeyAddParams) (string, error)
- func (s *SSHKeyService) Generate(ctx context.Context, owner string, params types.SSHKeyGenerateParams) (*types.SSHKeyResponse, error)
- func (s *SSHKeyService) List(ctx context.Context, owner string) ([]types.SSHKey, error)
- type VolumeService
- func (s *VolumeService) Create(ctx context.Context, userID, projectID string, ...) (types.Volume, error)
- func (s *VolumeService) Delete(ctx context.Context, userID, projectID, volumeIDOrName string) error
- func (s *VolumeService) List(ctx context.Context, userID string, projectID string) ([]types.Volume, error)
- func (s *VolumeService) Update(ctx context.Context, userID, projectID, volumeIDOrName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type AccountService struct {
// contains filtered or unexported fields
}
func (*AccountService) AccountGet ¶
func (*AccountService) PairingTokenCreate ¶
func (a *AccountService) PairingTokenCreate(ctx context.Context) (code string, err error)
func (*AccountService) PairingTokenExchange ¶
func (*AccountService) ProjectGet ¶
type BuildService ¶ added in v0.1.8
type BuildService struct {
// contains filtered or unexported fields
}
func (*BuildService) Create ¶ added in v0.1.8
func (b *BuildService) Create(ctx context.Context, owner, project string, params types.BuildsCreateParams) (string, error)
type Client ¶
type Client struct { Build *BuildService Provider Provider Exec Execer SSHKey *SSHKeyService Volume *VolumeService Endpoints *EndpointService Evals *EvalService // Management Account *AccountService // contains filtered or unexported fields }
func (*Client) ExecuteRest ¶
func (c *Client) ExecuteRest(ctx context.Context, req *RestRequest, resp interface{}) error
func (*Client) NewAuthorizedRestRequest ¶
func (c *Client) NewAuthorizedRestRequest(rtype RestRequestType, endpoint string, query map[string]string, body interface{}) ( *RestRequest, error, )
func (*Client) NewRestRequest ¶
func (c *Client) NewRestRequest(rtype RestRequestType, endpoint string, params map[string]string, body interface{}) ( *RestRequest, error, )
type EndpointService ¶ added in v0.1.40
type EndpointService struct {
// contains filtered or unexported fields
}
func (*EndpointService) CreateVersion ¶ added in v0.1.40
func (s *EndpointService) CreateVersion(ctx context.Context, userID, projectID, endpointID, execID string) (types.EndpointVersion, error)
func (*EndpointService) EndpointCheckStatus ¶ added in v0.1.40
func (s *EndpointService) EndpointCheckStatus(ctx context.Context, userID, projectID, checkID string) (types.EndpointCheck, error)
func (*EndpointService) EvalAttach ¶ added in v0.1.40
func (s *EndpointService) EvalAttach(ctx context.Context, userID, projectID, endpointID, evalID string) error
func (*EndpointService) List ¶ added in v0.1.40
func (s *EndpointService) List(ctx context.Context, userID, projectID string) ([]types.EndpointListItem, error)
func (*EndpointService) RunEvalCheck ¶ added in v0.1.40
func (s *EndpointService) RunEvalCheck(ctx context.Context, userID, projectID, endpointID string) error
type EvalService ¶ added in v0.1.40
type EvalService struct {
// contains filtered or unexported fields
}
type ExecService ¶ added in v0.1.16
type ExecService struct {
// contains filtered or unexported fields
}
func (*ExecService) Create ¶ added in v0.1.16
func (s *ExecService) Create(ctx context.Context, owner, project string, params types.ExecCreateParams) (*types.Exec, error)
type Execer ¶ added in v0.1.40
type Execer interface { Create(ctx context.Context, owner, project string, params types.ExecCreateParams) (*types.Exec, error) Exec(ctx context.Context, cmd []string, image string, sessionID *string) (*types.Exec, error) List(ctx context.Context, owner, project string, listTerminated bool) ([]types.Exec, error) Get(ctx context.Context, owner, project, sessionID string) (*types.Exec, error) Terminate(ctx context.Context, owner, project, sessionID string) error }
type ProviderService ¶
type ProviderService struct {
// contains filtered or unexported fields
}
type RestRequest ¶
type RestRequestType ¶
type RestRequestType string
const ( Get RestRequestType = http.MethodGet Post RestRequestType = http.MethodPost Put RestRequestType = http.MethodPut Delete RestRequestType = http.MethodDelete )
type SSHKeyService ¶
type SSHKeyService struct {
// contains filtered or unexported fields
}
func (*SSHKeyService) Add ¶
func (s *SSHKeyService) Add(ctx context.Context, owner string, params types.SSHKeyAddParams) (string, error)
func (*SSHKeyService) Generate ¶
func (s *SSHKeyService) Generate(ctx context.Context, owner string, params types.SSHKeyGenerateParams) (*types.SSHKeyResponse, error)
type VolumeService ¶ added in v0.1.36
type VolumeService struct {
// contains filtered or unexported fields
}
func (*VolumeService) Create ¶ added in v0.1.36
func (s *VolumeService) Create(ctx context.Context, userID, projectID string, create types.VolumeCreateRequest) (types.Volume, error)
func (*VolumeService) Delete ¶ added in v0.1.36
func (s *VolumeService) Delete(ctx context.Context, userID, projectID, volumeIDOrName string) error
func (*VolumeService) Update ¶ added in v0.1.36
func (s *VolumeService) Update(ctx context.Context, userID, projectID, volumeIDOrName string, update types.VolumeResizeRequest) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.