project_service

package
v0.0.0-...-0c3f707 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLA = "CLA"
	NA  = "N/A"
)

constants

Variables

This section is empty.

Functions

func InitClient

func InitClient(APIGwURL string)

InitClient initializes the user_service client

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is client for user_service

func GetClient

func GetClient() *Client

GetClient return user_service client

func (*Client) DisableCLA

func (pmm *Client) DisableCLA(ctx context.Context, projectSFID string) error

DisableCLA enables CLA service in project-service

func (*Client) EnableCLA

func (pmm *Client) EnableCLA(ctx context.Context, projectSFID string) error

EnableCLA enables CLA service in project-service

func (*Client) GetParentProject

func (pmm *Client) GetParentProject(projectSFID string) (string, error)

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

func (pmm *Client) IsAnyProjectTheRootParent(sliceProjectSFID []string) bool

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

func (pmm *Client) IsParentTheLinuxFoundation(projectSFID string) (bool, error)

IsParentTheLinuxFoundation returns true if the parent is the The Linux Foundation project

func (*Client) IsTheLinuxFoundation

func (pmm *Client) IsTheLinuxFoundation(projectSFID string) (bool, error)

IsTheLinuxFoundation returns true if the specified project SFID is the The Linux Foundation project

func (*Client) RemoveLinuxFoundationParentsFromProjectList

func (pmm *Client) RemoveLinuxFoundationParentsFromProjectList(projectList []string) []string

RemoveLinuxFoundationParentsFromProjectList removes any Linux Foundation root/parent projects from the list

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL