Documentation ¶
Index ¶
- type ImageUtil
- type ProjectUtil
- func (pu *ProjectUtil) AssignRole(projectName, username string) error
- func (pu *ProjectUtil) CreateProject(projectName string, accessLevel bool) error
- func (pu *ProjectUtil) DeleteProject(projectName string) error
- func (pu *ProjectUtil) GetProjectID(projectName string) int
- func (pu *ProjectUtil) GetProjectMember(pid int, member string) (*models.ExistingMember, error)
- func (pu *ProjectUtil) GetProjects(name string) ([]models.ExistingProject, error)
- func (pu *ProjectUtil) RevokeRole(projectName string, username string) error
- type Report
- type SystemUtil
- type UserUtil
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageUtil ¶
type ImageUtil struct {
// contains filtered or unexported fields
}
ImageUtil : For repository and tag functions
func NewImageUtil ¶
NewImageUtil : Constructor
func (*ImageUtil) DeleteRepo ¶
DeleteRepo : Delete repo
func (*ImageUtil) GetRepos ¶
func (iu *ImageUtil) GetRepos(projectName string) ([]models.Repository, error)
GetRepos : Get repos in the project
type ProjectUtil ¶
type ProjectUtil struct {
// contains filtered or unexported fields
}
ProjectUtil : Util methods for project related
func NewProjectUtil ¶
func NewProjectUtil(rootURI string, httpClient *client.APIClient) *ProjectUtil
NewProjectUtil : Constructor
func (*ProjectUtil) AssignRole ¶
func (pu *ProjectUtil) AssignRole(projectName, username string) error
AssignRole : Assign role to user
func (*ProjectUtil) CreateProject ¶
func (pu *ProjectUtil) CreateProject(projectName string, accessLevel bool) error
CreateProject :Create project
func (*ProjectUtil) DeleteProject ¶
func (pu *ProjectUtil) DeleteProject(projectName string) error
DeleteProject : Delete project
func (*ProjectUtil) GetProjectID ¶
func (pu *ProjectUtil) GetProjectID(projectName string) int
GetProjectID : Get the project ID If no project existing with the name, then return -1
func (*ProjectUtil) GetProjectMember ¶
func (pu *ProjectUtil) GetProjectMember(pid int, member string) (*models.ExistingMember, error)
GetProjectMember : Get the project member by name
func (*ProjectUtil) GetProjects ¶
func (pu *ProjectUtil) GetProjects(name string) ([]models.ExistingProject, error)
GetProjects : Get projects If name specified, then only get the specified project
func (*ProjectUtil) RevokeRole ¶
func (pu *ProjectUtil) RevokeRole(projectName string, username string) error
RevokeRole : RevokeRole role from user
type SystemUtil ¶
type SystemUtil struct {
// contains filtered or unexported fields
}
SystemUtil : For getting system info
func NewSystemUtil ¶
func NewSystemUtil(rootURI, hostname string, httpClient *client.APIClient) *SystemUtil
NewSystemUtil : Constructor
func (*SystemUtil) GetSystemInfo ¶
func (nsu *SystemUtil) GetSystemInfo() error
GetSystemInfo : Get systeminfo
type UserUtil ¶
type UserUtil struct {
// contains filtered or unexported fields
}
UserUtil : For user related
func NewUserUtil ¶
NewUserUtil : Constructor
func (*UserUtil) CreateUser ¶
CreateUser : Create user
func (*UserUtil) DeleteUser ¶
DeleteUser : Delete testing account