Documentation
¶
Index ¶
- type Client
- type ConfigService
- type DeploymentCreateRequest
- type DeploymentListOptions
- type DeploymentService
- func (s *DeploymentService) Create(ctx context.Context, namespace, name string, body *DeploymentCreateRequest) (*ent.Deployment, error)
- func (s *DeploymentService) Get(ctx context.Context, namespace, name string, number int) (*ent.Deployment, error)
- func (s *DeploymentService) List(ctx context.Context, namespace, name string, options *DeploymentListOptions) ([]*ent.Deployment, error)
- func (s *DeploymentService) Update(ctx context.Context, namespace, name string, number int) (*ent.Deployment, error)
- type DeploymentStatusCreateRemoteRequest
- type DeploymentStatusService
- type ErrorResponse
- type ListOptions
- type RepoListOptions
- type RepoService
- func (s *RepoService) Get(ctx context.Context, namespace, name string) (*ent.Repo, error)
- func (s *RepoService) List(ctx context.Context, options *RepoListOptions) ([]*ent.Repo, error)
- func (s *RepoService) ListAll(ctx context.Context) ([]*ent.Repo, error)
- func (s *RepoService) Update(ctx context.Context, namespace, name string, options *RepoUpdateRequest) (*ent.Repo, error)
- type RepoUpdateRequest
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Services is used for talking to different parts of the Gitploy API. Repo *RepoService Deployment *DeploymentService DeploymentStatus *DeploymentStatusService Config *ConfigService User *UserService // contains filtered or unexported fields }
type ConfigService ¶
type ConfigService service
type DeploymentCreateRequest ¶
type DeploymentListOptions ¶
type DeploymentListOptions struct { ListOptions Env string Status deployment.Status }
type DeploymentService ¶
type DeploymentService service
func (*DeploymentService) Create ¶
func (s *DeploymentService) Create(ctx context.Context, namespace, name string, body *DeploymentCreateRequest) (*ent.Deployment, error)
Create requests a server to deploy a specific ref(branch, SHA, tag).
func (*DeploymentService) Get ¶
func (s *DeploymentService) Get(ctx context.Context, namespace, name string, number int) (*ent.Deployment, error)
Get returns the deployment.
func (*DeploymentService) List ¶
func (s *DeploymentService) List(ctx context.Context, namespace, name string, options *DeploymentListOptions) ([]*ent.Deployment, error)
List returns the deployment list. It returns an error for a bad request.
func (*DeploymentService) Update ¶
func (s *DeploymentService) Update(ctx context.Context, namespace, name string, number int) (*ent.Deployment, error)
Update requests to trigger the 'waiting' deployment.
type DeploymentStatusService ¶
type DeploymentStatusService service
func (*DeploymentStatusService) CreateRemote ¶
func (s *DeploymentStatusService) CreateRemote(ctx context.Context, namespace, name string, number int, body *DeploymentStatusCreateRemoteRequest) (*extent.RemoteDeploymentStatus, error)
CreateRemote returns the remote status. It returns an error for a bad request.
func (*DeploymentStatusService) List ¶
func (s *DeploymentStatusService) List(ctx context.Context, namespace, name string, number int, opt *ListOptions) ([]*ent.DeploymentStatus, error)
List returns the list of deployment statuses. It returns an error for a bad request.
type ErrorResponse ¶
type ListOptions ¶
type RepoListOptions ¶
type RepoListOptions struct {
ListOptions
}
type RepoService ¶
type RepoService service
func (*RepoService) List ¶
func (s *RepoService) List(ctx context.Context, options *RepoListOptions) ([]*ent.Repo, error)
List returns repositories which are on the page.
func (*RepoService) Update ¶
func (s *RepoService) Update(ctx context.Context, namespace, name string, options *RepoUpdateRequest) (*ent.Repo, error)
type RepoUpdateRequest ¶
Click to show internal directories.
Click to hide internal directories.