Documentation ¶
Index ¶
- Constants
- func InitClient(APIGwURL string)
- type Client
- func (pmm *Client) DisableCLA(ctx context.Context, projectSFID string) error
- func (pmm *Client) EnableCLA(ctx context.Context, projectSFID string) error
- func (pmm *Client) GetParentProject(projectSFID string) (string, error)
- func (pmm *Client) GetParentProjectModel(projectSFID string) (*models.ProjectOutputDetailed, error)
- func (pmm *Client) GetProject(projectSFID string) (*models.ProjectOutputDetailed, error)
- func (pmm *Client) GetProjectByName(ctx context.Context, projectName string) (*models.ProjectListSearch, error)
- func (pmm *Client) GetSummary(ctx context.Context, projectSFID string) ([]*models.ProjectSummary, error)
- func (pmm *Client) IsAnyProjectTheRootParent(sliceProjectSFID []string) bool
- func (pmm *Client) IsParentTheLinuxFoundation(projectSFID string) (bool, error)
- func (pmm *Client) IsTheLinuxFoundation(projectSFID string) (bool, error)
- func (pmm *Client) RemoveLinuxFoundationParentsFromProjectList(projectList []string) []string
Constants ¶
const ( CLA = "CLA" NA = "N/A" )
constants
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is client for user_service
func (*Client) DisableCLA ¶
DisableCLA enables CLA service in project-service
func (*Client) GetParentProject ¶
GetParentProject returns the parent project SFID if there is a parent, otherwise returns the provided projectSFID
func (*Client) GetParentProjectModel ¶
func (pmm *Client) GetParentProjectModel(projectSFID string) (*models.ProjectOutputDetailed, error)
GetParentProjectModel returns the parent project model if there is a parent, otherwise returns nil
func (*Client) GetProject ¶
func (pmm *Client) GetProject(projectSFID string) (*models.ProjectOutputDetailed, error)
GetProject returns project details
func (*Client) GetProjectByName ¶
func (pmm *Client) GetProjectByName(ctx context.Context, projectName string) (*models.ProjectListSearch, error)
GetProjectByName returns project details for the associated project name
func (*Client) GetSummary ¶
func (pmm *Client) GetSummary(ctx context.Context, projectSFID string) ([]*models.ProjectSummary, error)
GetSummary gets projects tree hierarchy and project details
func (*Client) IsAnyProjectTheRootParent ¶
IsAnyProjectTheRootParent returns true if one or more of the project ID's in the list is one of the root parents, returns false otherwise
func (*Client) IsParentTheLinuxFoundation ¶
IsParentTheLinuxFoundation returns true if the parent is the The Linux Foundation project
func (*Client) IsTheLinuxFoundation ¶
IsTheLinuxFoundation returns true if the specified project SFID is the The Linux Foundation project
func (*Client) RemoveLinuxFoundationParentsFromProjectList ¶
RemoveLinuxFoundationParentsFromProjectList removes any Linux Foundation root/parent projects from the list