Documentation ¶
Index ¶
- Constants
- Variables
- func GetFlags(prefix, category string) []cli.Flag
- func GetPath(name string, id int64) string
- type Asset
- type AssetProvider
- func (o *AssetProvider) Get(ctx context.Context, object common.ContainerObjectInterface, ...) common.ContainerObjectInterface
- func (o *AssetProvider) GetPath(object common.ContainerObjectInterface, ...) string
- func (o *AssetProvider) Init(driver *F3, name string) *AssetProvider
- func (o *AssetProvider) ProcessObject(ctx context.Context, object common.ContainerObjectInterface, ...)
- func (o *AssetProvider) Put(ctx context.Context, object, existing common.ContainerObjectInterface, ...) common.ContainerObjectInterface
- type Bean
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) Equals(other ObjectPtr) bool
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) FromFormat(bean FormatPtr)
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) GetID() int64
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) GetIDString() string
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) GetName() string
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) GetPath() string
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) IsNil() bool
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) SetID(id int64)
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) SetIDString(id string)
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) SetName(name string)
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) ToFormat() FormatPtr
- func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) ToFormatInterface() format.Interface
- type BeanInterface
- type BeanProvider
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) BeanConverter(format FormatPtr) ObjectPtr
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Delete(ctx context.Context, object common.ContainerObjectInterface, ...) common.ContainerObjectInterface
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Equals(a, b common.ContainerObjectInterface) bool
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) FromFormat(ctx context.Context, format format.Interface) common.ContainerObjectInterface
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Get(ctx context.Context, exemplar common.ContainerObjectInterface, ...) common.ContainerObjectInterface
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetFilename(fileBase string) string
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetIDMap(parents ...common.ContainerObjectInterface) common.IDMapInterface
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetImplementation() any
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetLocalMatchingRemote(ctx context.Context, format format.Interface, ...) (string, bool)
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetLogger() *config_types.Logger
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetName() string
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetObjects(ctx context.Context, page int, parents ...common.ContainerObjectInterface) []common.ContainerObjectInterface
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetPath(parents ...common.ContainerObjectInterface) string
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Init(driver *F3, name string) *BeanProvider[Object, ObjectPtr, Format, FormatPtr]
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Load(beanFile string) ObjectPtr
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) ProcessObject(ctx context.Context, object common.ContainerObjectInterface, ...)
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Put(ctx context.Context, object, existing common.ContainerObjectInterface, ...) common.ContainerObjectInterface
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Remove(fileBase string)
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Store(beanFile string, bean ObjectPtr)
- func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) ToFormat(ctx context.Context, object common.ContainerObjectInterface) format.Interface
- type Comment
- type CommentProvider
- type F3
- func (o *F3) GetDirectory() string
- func (o *F3) GetLogger() *config_types.Logger
- func (o *F3) GetName() string
- func (o *F3) GetOptions() config_types.OptionsInterface
- func (o *F3) GetPerPage() int
- func (o *F3) GetProvider(name string, parent common.ProviderInterface) common.ProviderInterface
- func (o *F3) Init(options config_types.OptionsInterface)
- func (o *F3) SetOptions(options config_types.OptionsInterface)
- func (o *F3) SupportGetRepoComments() bool
- type IDMap
- type Issue
- type IssueProvider
- type Label
- type LabelProvider
- type Milestone
- type MilestoneProvider
- type ObjectPtrConstraint
- type Options
- type Project
- type ProjectProvider
- type PullRequest
- type PullRequestProvider
- func (o *PullRequestProvider) GetRepositoryPath(parents ...common.ContainerObjectInterface) string
- func (o *PullRequestProvider) Init(driver *F3, name string) *PullRequestProvider
- func (o *PullRequestProvider) Put(ctx context.Context, object, existing common.ContainerObjectInterface, ...) common.ContainerObjectInterface
- type Reaction
- type ReactionProvider
- type Release
- type ReleaseProvider
- type Repository
- type RepositoryProvider
- func (o *RepositoryProvider) Delete(ctx context.Context, object common.ContainerObjectInterface, ...) common.ContainerObjectInterface
- func (o *RepositoryProvider) EnsureRepository(ctx context.Context, directory string)
- func (o *RepositoryProvider) Get(ctx context.Context, exemplar common.ContainerObjectInterface, ...) common.ContainerObjectInterface
- func (o *RepositoryProvider) GetObjects(ctx context.Context, page int, parents ...common.ContainerObjectInterface) []common.ContainerObjectInterface
- func (o *RepositoryProvider) GetRepositoryPath(object common.ContainerObjectInterface, ...) string
- func (o *RepositoryProvider) Init(driver *F3, name string) *RepositoryProvider
- func (o *RepositoryProvider) Put(ctx context.Context, object, existing common.ContainerObjectInterface, ...) common.ContainerObjectInterface
- type Review
- type ReviewProvider
- type Topic
- type TopicProvider
- type User
- type UserProvider
Constants ¶
View Source
const ( AssetName = format.FormatAsset CommentName = format.FormatComment IssueName = format.FormatIssue LabelName = format.FormatLabel MilestoneName = format.FormatMilestone ProjectName = format.FormatProject PullRequestName = format.FormatPullRequest ReactionName = format.FormatReaction ReleaseName = format.FormatRelease RepositoryName = format.FormatRepository ReviewName = format.FormatReview TopicName = format.FormatTopic UserName = format.FormatUser )
Variables ¶
View Source
var Name = "F3"
Functions ¶
Types ¶
type Asset ¶
type Asset struct { Bean[Asset, *Asset, format.ReleaseAsset, *format.ReleaseAsset] }
type AssetProvider ¶
type AssetProvider struct { BeanProvider[Asset, *Asset, format.ReleaseAsset, *format.ReleaseAsset] }
func (*AssetProvider) Get ¶
func (o *AssetProvider) Get(ctx context.Context, object common.ContainerObjectInterface, parents ...common.ContainerObjectInterface) common.ContainerObjectInterface
func (*AssetProvider) GetPath ¶
func (o *AssetProvider) GetPath(object common.ContainerObjectInterface, parents ...common.ContainerObjectInterface) string
func (*AssetProvider) Init ¶
func (o *AssetProvider) Init(driver *F3, name string) *AssetProvider
func (*AssetProvider) ProcessObject ¶
func (o *AssetProvider) ProcessObject(ctx context.Context, object common.ContainerObjectInterface, parents ...common.ContainerObjectInterface)
func (*AssetProvider) Put ¶
func (o *AssetProvider) Put(ctx context.Context, object, existing common.ContainerObjectInterface, parents ...common.ContainerObjectInterface) common.ContainerObjectInterface
type Bean ¶
type Bean[Object any, ObjectPtr driver.ObjectPtrConstraint[Object, ObjectPtr, Format, FormatPtr], Format any, FormatPtr driver.FormatPtrConstraint[Format, FormatPtr]] struct { // contains filtered or unexported fields }
func (*Bean[Object, ObjectPtr, Format, FormatPtr]) FromFormat ¶
func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) FromFormat(bean FormatPtr)
func (*Bean[Object, ObjectPtr, Format, FormatPtr]) GetIDString ¶
func (*Bean[Object, ObjectPtr, Format, FormatPtr]) SetIDString ¶
func (*Bean[Object, ObjectPtr, Format, FormatPtr]) ToFormat ¶
func (o *Bean[Object, ObjectPtr, Format, FormatPtr]) ToFormat() FormatPtr
func (*Bean[Object, ObjectPtr, Format, FormatPtr]) ToFormatInterface ¶
type BeanInterface ¶
type BeanInterface interface {
GetPath() string
}
type BeanProvider ¶
type BeanProvider[ Object any, ObjectPtr ObjectPtrConstraint[Object, ObjectPtr, Format, FormatPtr], Format any, FormatPtr driver.FormatPtrConstraint[Format, FormatPtr], ] struct { // contains filtered or unexported fields }
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) BeanConverter ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) BeanConverter(format FormatPtr) ObjectPtr
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Delete ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Delete(ctx context.Context, object common.ContainerObjectInterface, parents ...common.ContainerObjectInterface) common.ContainerObjectInterface
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Equals ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Equals(a, b common.ContainerObjectInterface) bool
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) FromFormat ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) FromFormat(ctx context.Context, format format.Interface) common.ContainerObjectInterface
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Get ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Get(ctx context.Context, exemplar common.ContainerObjectInterface, parents ...common.ContainerObjectInterface) common.ContainerObjectInterface
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetFilename ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetFilename(fileBase string) string
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetIDMap ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetIDMap(parents ...common.ContainerObjectInterface) common.IDMapInterface
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetImplementation ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetImplementation() any
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetLocalMatchingRemote ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetLocalMatchingRemote(ctx context.Context, format format.Interface, parents ...common.ContainerObjectInterface) (string, bool)
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetLogger ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetLogger() *config_types.Logger
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetName ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetName() string
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetObjects ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetObjects(ctx context.Context, page int, parents ...common.ContainerObjectInterface) []common.ContainerObjectInterface
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetPath ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) GetPath(parents ...common.ContainerObjectInterface) string
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Init ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Init(driver *F3, name string) *BeanProvider[Object, ObjectPtr, Format, FormatPtr]
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Load ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Load(beanFile string) ObjectPtr
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) ProcessObject ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) ProcessObject(ctx context.Context, object common.ContainerObjectInterface, parents ...common.ContainerObjectInterface)
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Put ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Put(ctx context.Context, object, existing common.ContainerObjectInterface, parents ...common.ContainerObjectInterface) common.ContainerObjectInterface
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Remove ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Remove(fileBase string)
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Store ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) Store(beanFile string, bean ObjectPtr)
func (*BeanProvider[Object, ObjectPtr, Format, FormatPtr]) ToFormat ¶
func (o *BeanProvider[Object, ObjectPtr, Format, FormatPtr]) ToFormat(ctx context.Context, object common.ContainerObjectInterface) format.Interface
type CommentProvider ¶
type F3 ¶
type F3 struct {
// contains filtered or unexported fields
}
func (*F3) GetDirectory ¶
func (*F3) GetLogger ¶
func (o *F3) GetLogger() *config_types.Logger
func (*F3) GetOptions ¶
func (o *F3) GetOptions() config_types.OptionsInterface
func (*F3) GetPerPage ¶
func (*F3) GetProvider ¶
func (o *F3) GetProvider(name string, parent common.ProviderInterface) common.ProviderInterface
func (*F3) Init ¶
func (o *F3) Init(options config_types.OptionsInterface)
func (*F3) SetOptions ¶
func (o *F3) SetOptions(options config_types.OptionsInterface)
func (*F3) SupportGetRepoComments ¶
type IssueProvider ¶
type LabelProvider ¶
type MilestoneProvider ¶
type ObjectPtrConstraint ¶
type Options ¶
type Options struct { config_types.Options Validation bool Remap bool }
func (*Options) FromFlags ¶
func (o *Options) FromFlags(ctx context.Context, c *cli.Context, prefix string) config_types.OptionsInterface
func (*Options) GetProjectPath ¶
type ProjectProvider ¶
type PullRequest ¶
type PullRequest struct { Bean[PullRequest, *PullRequest, format.PullRequest, *format.PullRequest] }
type PullRequestProvider ¶
type PullRequestProvider struct { BeanProvider[PullRequest, *PullRequest, format.PullRequest, *format.PullRequest] }
func (*PullRequestProvider) GetRepositoryPath ¶
func (o *PullRequestProvider) GetRepositoryPath(parents ...common.ContainerObjectInterface) string
func (*PullRequestProvider) Init ¶
func (o *PullRequestProvider) Init(driver *F3, name string) *PullRequestProvider
func (*PullRequestProvider) Put ¶
func (o *PullRequestProvider) Put(ctx context.Context, object, existing common.ContainerObjectInterface, parents ...common.ContainerObjectInterface) common.ContainerObjectInterface
type ReactionProvider ¶
type ReleaseProvider ¶
type Repository ¶
type Repository struct { Bean[Repository, *Repository, format.Repository, *format.Repository] }
func (*Repository) Equals ¶
func (o *Repository) Equals(other *Repository) bool
type RepositoryProvider ¶
type RepositoryProvider struct { BeanProvider[Repository, *Repository, format.Repository, *format.Repository] }
func (*RepositoryProvider) Delete ¶
func (o *RepositoryProvider) Delete(ctx context.Context, object common.ContainerObjectInterface, parents ...common.ContainerObjectInterface) common.ContainerObjectInterface
func (*RepositoryProvider) EnsureRepository ¶
func (o *RepositoryProvider) EnsureRepository(ctx context.Context, directory string)
func (*RepositoryProvider) Get ¶
func (o *RepositoryProvider) Get(ctx context.Context, exemplar common.ContainerObjectInterface, parents ...common.ContainerObjectInterface) common.ContainerObjectInterface
func (*RepositoryProvider) GetObjects ¶
func (o *RepositoryProvider) GetObjects(ctx context.Context, page int, parents ...common.ContainerObjectInterface) []common.ContainerObjectInterface
func (*RepositoryProvider) GetRepositoryPath ¶
func (o *RepositoryProvider) GetRepositoryPath(object common.ContainerObjectInterface, parents ...common.ContainerObjectInterface) string
func (*RepositoryProvider) Init ¶
func (o *RepositoryProvider) Init(driver *F3, name string) *RepositoryProvider
func (*RepositoryProvider) Put ¶
func (o *RepositoryProvider) Put(ctx context.Context, object, existing common.ContainerObjectInterface, parents ...common.ContainerObjectInterface) common.ContainerObjectInterface
type ReviewProvider ¶
type TopicProvider ¶
type UserProvider ¶
Click to show internal directories.
Click to hide internal directories.