Documentation ¶
Index ¶
- func ParseID(id interface{}) (string, error)
- type Client
- func (c *Client) ApplyStep(ctx context.Context, evalContext scm.EvalContext, ...) error
- func (client *Client) EvalContext(ctx context.Context) (scm.EvalContext, error)
- func (client *Client) Labels() scm.LabelClient
- func (client *Client) MergeRequests() scm.MergeRequestClient
- func (client *Client) Start(ctx context.Context) error
- func (client *Client) Stop(ctx context.Context, err error) error
- type LabelClient
- func (client *LabelClient) Create(ctx context.Context, opt *scm.CreateLabelOptions) (*scm.Label, *scm.Response, error)
- func (client *LabelClient) List(ctx context.Context) ([]*scm.Label, error)
- func (client *LabelClient) Update(ctx context.Context, opt *scm.UpdateLabelOptions) (*scm.Label, *scm.Response, error)
- type MergeRequestClient
- func (client *MergeRequestClient) GetRemoteConfig(ctx context.Context, filename, ref string) (io.Reader, error)
- func (client *MergeRequestClient) List(ctx context.Context, options *scm.ListMergeRequestsOptions) ([]scm.ListMergeRequest, error)
- func (client *MergeRequestClient) Update(ctx context.Context, opt *scm.UpdateMergeRequestOptions) (*scm.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper around the GitLab specific implementation of scm.Client interface
func (*Client) ApplyStep ¶ added in v0.3.0
func (c *Client) ApplyStep(ctx context.Context, evalContext scm.EvalContext, update *scm.UpdateMergeRequestOptions, step scm.EvaluationActionStep) error
func (*Client) EvalContext ¶
EvalContext creates a new evaluation context for GitLab specific usage
func (*Client) Labels ¶
func (client *Client) Labels() scm.LabelClient
Labels returns a client target at managing labels/tags
func (*Client) MergeRequests ¶
func (client *Client) MergeRequests() scm.MergeRequestClient
MergeRequests returns a client target at managing merge/pull requests
type LabelClient ¶
type LabelClient struct {
// contains filtered or unexported fields
}
func NewLabelClient ¶
func NewLabelClient(client *Client) *LabelClient
func (*LabelClient) Create ¶
func (client *LabelClient) Create(ctx context.Context, opt *scm.CreateLabelOptions) (*scm.Label, *scm.Response, error)
type MergeRequestClient ¶
type MergeRequestClient struct {
// contains filtered or unexported fields
}
func NewMergeRequestClient ¶
func NewMergeRequestClient(client *Client) *MergeRequestClient
func (*MergeRequestClient) GetRemoteConfig ¶ added in v0.4.0
func (*MergeRequestClient) List ¶ added in v0.3.0
func (client *MergeRequestClient) List(ctx context.Context, options *scm.ListMergeRequestsOptions) ([]scm.ListMergeRequest, error)
func (*MergeRequestClient) Update ¶
func (client *MergeRequestClient) Update(ctx context.Context, opt *scm.UpdateMergeRequestOptions) (*scm.Response, error)
Click to show internal directories.
Click to hide internal directories.