Documentation
¶
Index ¶
- func ToPBApp(a *App, containDetails bool) *librarian.App
- func ToPBAppDetails(d *AppDetails) *librarian.AppDetails
- func ToPBAppList(al []*App, containDetails bool) []*librarian.App
- func ToPBAppPackage(a *AppPackage) *librarian.AppPackage
- func ToPBAppPackageList(al []*AppPackage) []*librarian.AppPackage
- func ToPBAppPackageSource(a AppPackageSource) librarian.AppPackageSource
- func ToPBAppSource(s AppSource) librarian.AppSource
- func ToPBAppType(t AppType) librarian.AppType
- func UploadArtifactsCallback(file *bizbinah.UploadFile) error
- type App
- type AppDetails
- type AppPackage
- type AppPackageBinary
- type AppPackageSource
- type AppSource
- type AppType
- type Gebura
- func (g *Gebura) AssignAppPackage(ctx context.Context, app App, appPackage AppPackage) *errors.Error
- func (g *Gebura) BindApp(ctx context.Context, internal App, bind App) (*App, *errors.Error)
- func (g *Gebura) CreateApp(ctx context.Context, app *App) (*App, *errors.Error)
- func (g *Gebura) CreateAppPackage(ctx context.Context, a *AppPackage) (*AppPackage, *errors.Error)
- func (g *Gebura) ListApp(ctx context.Context, paging Paging, sources []AppSource, types []AppType, ...) ([]*App, *errors.Error)
- func (g *Gebura) ListAppPackage(ctx context.Context, paging Paging, sources []AppPackageSource, ids []int64) ([]*AppPackage, *errors.Error)
- func (g *Gebura) ListBindApp(ctx context.Context, id int64) ([]*App, *errors.Error)
- func (g *Gebura) NewReportAppPackageHandler(ctx context.Context) (ReportAppPackageHandler, *errors.Error)
- func (g *Gebura) UpdateApp(ctx context.Context, app *App) *errors.Error
- func (g *Gebura) UpdateAppPackage(ctx context.Context, a *AppPackage) *errors.Error
- func (g *Gebura) UpsertApp(ctx context.Context, app []*App) ([]*App, *errors.Error)
- type GeburaRepo
- type Paging
- type ReportAppPackageHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToPBAppDetails ¶ added in v0.0.2
func ToPBAppDetails(d *AppDetails) *librarian.AppDetails
func ToPBAppList ¶ added in v0.0.2
func ToPBAppPackage ¶ added in v0.0.4
func ToPBAppPackage(a *AppPackage) *librarian.AppPackage
func ToPBAppPackageList ¶ added in v0.0.4
func ToPBAppPackageList(al []*AppPackage) []*librarian.AppPackage
func ToPBAppPackageSource ¶ added in v0.0.4
func ToPBAppPackageSource(a AppPackageSource) librarian.AppPackageSource
func ToPBAppSource ¶ added in v0.0.2
func ToPBAppType ¶ added in v0.0.2
func UploadArtifactsCallback ¶
func UploadArtifactsCallback(file *bizbinah.UploadFile) error
Types ¶
type AppDetails ¶
func ToBizAppDetail ¶ added in v0.0.2
func ToBizAppDetail(d *librarian.AppDetails) *AppDetails
type AppPackage ¶ added in v0.0.4
type AppPackage struct { InternalID int64 Source AppPackageSource SourceID int64 SourcePackageID string Name string Description string Binary AppPackageBinary }
type AppPackageBinary ¶ added in v0.0.4
type AppPackageSource ¶ added in v0.0.4
type AppPackageSource int
const ( AppPackageSourceUnspecified AppPackageSource = iota AppPackageSourceManual AppPackageSourceSentinel )
func ToBizAppPackageSource ¶ added in v0.0.4
func ToBizAppPackageSource(a librarian.AppPackageSource) AppPackageSource
func ToBizAppPackageSourceList ¶ added in v0.0.4
func ToBizAppPackageSourceList(al []librarian.AppPackageSource) []AppPackageSource
type AppSource ¶
type AppSource int
func ToBizAppSource ¶ added in v0.0.2
func ToBizAppSourceList ¶ added in v0.0.2
type AppType ¶
type AppType int
func ToBizAppType ¶ added in v0.0.2
func ToBizAppTypeList ¶ added in v0.0.2
type Gebura ¶ added in v0.0.2
type Gebura struct {
// contains filtered or unexported fields
}
func NewGebura ¶ added in v0.0.2
func NewGebura( repo GeburaRepo, auth *libauth.Auth, block bizbinah.CallbackControlBlock, mClient mapper.LibrarianMapperServiceClient, pClient porter.LibrarianPorterServiceClient, sClient searcher.LibrarianSearcherServiceClient, ) *Gebura
func (*Gebura) AssignAppPackage ¶ added in v0.0.4
func (*Gebura) CreateAppPackage ¶ added in v0.0.4
func (g *Gebura) CreateAppPackage(ctx context.Context, a *AppPackage) (*AppPackage, *errors.Error)
func (*Gebura) ListAppPackage ¶ added in v0.0.4
func (g *Gebura) ListAppPackage( ctx context.Context, paging Paging, sources []AppPackageSource, ids []int64, ) ([]*AppPackage, *errors.Error)
func (*Gebura) ListBindApp ¶ added in v0.0.3
func (*Gebura) NewReportAppPackageHandler ¶ added in v0.0.4
func (*Gebura) UpdateAppPackage ¶ added in v0.0.4
type GeburaRepo ¶
type GeburaRepo interface { IsApp(context.Context, int64) error CreateApp(context.Context, *App) error UpdateApp(context.Context, *App) error UpsertApp(context.Context, []*App) error ListApp(context.Context, Paging, []AppSource, []AppType, []int64, bool) ([]*App, error) IsAppPackage(context.Context, int64) error CreateAppPackage(context.Context, *AppPackage) error UpdateAppPackage(context.Context, *AppPackage) error UpsertAppPackage(context.Context, []*AppPackage) error ListAppPackage(context.Context, Paging, []AppPackageSource, []int64) ([]*AppPackage, error) ListAllAppPackageIDOfOneSource(context.Context, AppPackageSource, int64) ([]string, error) }
type ReportAppPackageHandler ¶ added in v0.0.4
type ReportAppPackageHandler interface {
Handle(context.Context, []*AppPackage) *errors.Error
}
Click to show internal directories.
Click to hide internal directories.