Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildsExporter ¶
type BuildsExporter struct {
// contains filtered or unexported fields
}
func NewBuildsExporter ¶
func NewBuildsExporter(client *gqlclient.Client, http *http.Client) *BuildsExporter
func (*BuildsExporter) Export ¶
func (ex *BuildsExporter) Export(ctx context.Context, dir string) error
func (*BuildsExporter) ExportResource ¶ added in v0.5.0
func (ex *BuildsExporter) ExportResource(ctx context.Context, dir, owner, resource string) error
func (*BuildsExporter) ImportResource ¶ added in v0.5.0
func (ex *BuildsExporter) ImportResource(ctx context.Context, dir string) error
type DirResource ¶ added in v0.5.0
func FindDirResources ¶ added in v0.5.0
func FindDirResources(dir string) ([]DirResource, error)
type GitExporter ¶
type GitExporter struct {
// contains filtered or unexported fields
}
func NewGitExporter ¶
func NewGitExporter(client *gqlclient.Client, baseURL string) *GitExporter
func (*GitExporter) ExportResource ¶ added in v0.5.0
func (ex *GitExporter) ExportResource(ctx context.Context, dir, owner, resource string) error
func (*GitExporter) ImportResource ¶ added in v0.5.0
func (ex *GitExporter) ImportResource(ctx context.Context, dir string) error
type GitRepoInfo ¶
type GitRepoInfo struct { Info Description *string `json:"description"` Visibility gitsrht.Visibility `json:"visibility"` Readme *string `json:"readme"` Head *string `json:"head"` }
A subset of gitsrht.Repository which only contains the fields we want to export (i.e. the ones filled in by the GraphQL query)
type HgExporter ¶
type HgExporter struct {
// contains filtered or unexported fields
}
func NewHgExporter ¶
func NewHgExporter(client *gqlclient.Client, baseURL string) *HgExporter
func (*HgExporter) ExportResource ¶ added in v0.5.0
func (ex *HgExporter) ExportResource(ctx context.Context, dir, owner, resource string) error
func (*HgExporter) ImportResource ¶ added in v0.5.0
func (ex *HgExporter) ImportResource(ctx context.Context, dir string) error
type HgRepoInfo ¶
type HgRepoInfo struct { Info Description *string `json:"description"` Visibility hgsrht.Visibility `json:"visibility"` Readme *string `json:"readme"` NonPublishing bool `json:"nonPublishing"` }
A subset of hgsrht.Repository which only contains the fields we want to export (i.e. the ones filled in by the GraphQL query)
type JobInfo ¶
type JobInfo struct { Info Id int32 `json:"id"` Status string `json:"status"` Note *string `json:"note,omitempty"` Tags []string `json:"tags"` Visibility buildssrht.Visibility `json:"visibility"` }
type ListsExporter ¶
type ListsExporter struct {
// contains filtered or unexported fields
}
func NewListsExporter ¶
func NewListsExporter(client *gqlclient.Client, http *http.Client) *ListsExporter
func (*ListsExporter) Export ¶
func (ex *ListsExporter) Export(ctx context.Context, dir string) error
func (*ListsExporter) ExportResource ¶ added in v0.5.0
func (ex *ListsExporter) ExportResource(ctx context.Context, dir, owner, resource string) error
func (*ListsExporter) ImportResource ¶ added in v0.5.0
func (ex *ListsExporter) ImportResource(ctx context.Context, dir string) error
type MailingListInfo ¶
type MailingListInfo struct { Info Description *string `json:"description"` Visibility listssrht.Visibility `json:"visibility"` PermitMime []string `json:"permitMime"` RejectMime []string `json:"rejectMime"` }
A subset of listssrht.MailingList which only contains the fields we want to export (i.e. the ones filled in by the GraphQL query)
type MetaExporter ¶
type MetaExporter struct {
// contains filtered or unexported fields
}
func NewMetaExporter ¶
func NewMetaExporter(client *gqlclient.Client) *MetaExporter
func (*MetaExporter) ExportResource ¶ added in v0.5.0
func (ex *MetaExporter) ExportResource(ctx context.Context, dir, owner, resource string) error
func (*MetaExporter) ImportResource ¶ added in v0.5.0
func (ex *MetaExporter) ImportResource(ctx context.Context, dir string) error
type PasteExporter ¶
type PasteExporter struct {
// contains filtered or unexported fields
}
func NewPasteExporter ¶
func NewPasteExporter(client *gqlclient.Client, http *http.Client) *PasteExporter
func (*PasteExporter) Export ¶
func (ex *PasteExporter) Export(ctx context.Context, dir string) error
func (*PasteExporter) ExportResource ¶ added in v0.5.0
func (ex *PasteExporter) ExportResource(ctx context.Context, dir, owner, resource string) error
func (*PasteExporter) ImportResource ¶ added in v0.5.0
func (ex *PasteExporter) ImportResource(ctx context.Context, dir string) error
type PasteInfo ¶
type PasteInfo struct { Info Visibility pastesrht.Visibility `json:"visibility"` }
type TodoExporter ¶ added in v0.4.0
type TodoExporter struct {
// contains filtered or unexported fields
}
func NewTodoExporter ¶ added in v0.4.0
func NewTodoExporter(client *gqlclient.Client, http *http.Client) *TodoExporter
func (*TodoExporter) Export ¶ added in v0.4.0
func (ex *TodoExporter) Export(ctx context.Context, dir string) error
func (*TodoExporter) ExportResource ¶ added in v0.5.0
func (ex *TodoExporter) ExportResource(ctx context.Context, dir, owner, resource string) error
func (*TodoExporter) ImportResource ¶ added in v0.5.0
func (ex *TodoExporter) ImportResource(ctx context.Context, dir string) error
type TrackerInfo ¶ added in v0.4.0
type TrackerInfo struct { Info Description *string `json:"description"` Visibility todosrht.Visibility `json:"visibility"` }
Click to show internal directories.
Click to hide internal directories.