Documentation
¶
Index ¶
- Variables
- func IsGitType(kind string) bool
- type Commit
- type Connection
- type Files
- type Options
- type Ref
- type Refs
- type Repository
- type Request
- type Service
- func (s *Service) Commits(ctx context.Context, request Request) (git.Page[Commit], error)
- func (s *Service) Connections(ctx context.Context) ([]Connection, error)
- func (s *Service) Executions(ctx context.Context, request Request) (git.Page[git.PipelineExecution], error)
- func (s *Service) Files(ctx context.Context, request Request) (Files, error)
- func (s *Service) Pipelines(ctx context.Context, request Request) (git.Page[git.Pipeline], error)
- func (s *Service) ReadFile(ctx context.Context, request Request) ([]byte, error)
- func (s *Service) Refs(ctx context.Context, request Request) (Refs, error)
- func (s *Service) Repositories(ctx context.Context, request Request) ([]Repository, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalid = errors.New("invalid git source") ErrUnknownConnection = errors.New("unknown git connection") )
Functions ¶
Types ¶
type Connection ¶
type Repository ¶
type Repository struct {
Name string `json:"name"`
FullName string `json:"fullName"`
Namespace string `json:"namespace,omitempty"`
CloneURL string `json:"cloneUrl,omitempty"`
WebURL string `json:"webUrl,omitempty"`
DefaultBranch string `json:"defaultBranch,omitempty"`
Private bool `json:"private,omitempty"`
Archived bool `json:"archived,omitempty"`
}
type Request ¶
type Request struct {
Connection string `json:"connection"`
Repo string `json:"repo,omitempty"`
Ref string `json:"ref,omitempty"`
Path string `json:"path,omitempty"`
Pipeline string `json:"pipeline,omitempty"`
Branch string `json:"branch,omitempty"`
Cursor string `json:"cursor,omitempty"`
Limit int `json:"limit,omitempty"`
Extensions []string `json:"extensions,omitempty"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Connections ¶
func (s *Service) Connections(ctx context.Context) ([]Connection, error)
func (*Service) Executions ¶
func (*Service) Repositories ¶
Click to show internal directories.
Click to hide internal directories.