Documentation
¶
Index ¶
- func CheckAppId(appId string) error
- type App
- type AppService
- func (ps *AppService) CreateApp(organizationID, projectId, alternateID, name string) (App, error)
- func (ps *AppService) DeleteApp(organizationID, appID string) error
- func (ps *AppService) GetApp(organizationID, appID string) (App, error)
- func (ps *AppService) GetListApps(organizationID, projectID string, pageSize, pageNum int) ([]App, error)
- type AppServicer
- type MockAppService
- func (m *MockAppService) CreateApp(organizationID, alternateID, name string) (App, error)
- func (m *MockAppService) DeleteApp(organizationID, appID string) error
- func (m *MockAppService) GetApp(organizationID, appID string) (App, error)
- func (m *MockAppService) GetListApps(organizationID string, pageSize, pageNum int) ([]App, error)
- type Organization
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAppId ¶
Types ¶
type App ¶
type App struct {
ID string `json:"id"`
AlternateId string `json:"alternateId"`
Name string `json:"name"`
Organization Organization `json:"organization"`
Project *Project `json:"project,omitempty"`
}
type AppService ¶
type AppService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *AppService
func (*AppService) CreateApp ¶
func (ps *AppService) CreateApp(organizationID, projectId, alternateID, name string) (App, error)
func (*AppService) DeleteApp ¶
func (ps *AppService) DeleteApp(organizationID, appID string) error
func (*AppService) GetListApps ¶
func (ps *AppService) GetListApps(organizationID, projectID string, pageSize, pageNum int) ([]App, error)
type AppServicer ¶
type MockAppService ¶
MockAppService is a mock implementation of the AppServicer interface
func (*MockAppService) CreateApp ¶
func (m *MockAppService) CreateApp(organizationID, alternateID, name string) (App, error)
CreateApp mocks the CreateApp method
func (*MockAppService) DeleteApp ¶
func (m *MockAppService) DeleteApp(organizationID, appID string) error
DeleteApp mocks the DeleteApp method
func (*MockAppService) GetApp ¶
func (m *MockAppService) GetApp(organizationID, appID string) (App, error)
GetApp mocks the GetApp method
func (*MockAppService) GetListApps ¶
func (m *MockAppService) GetListApps(organizationID string, pageSize, pageNum int) ([]App, error)
GetListApps mocks the GetListApps method
type Organization ¶
Click to show internal directories.
Click to hide internal directories.