Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(project *Project)
Option the is fun to set *Project property
func WithBundle ¶
WithBundle sets the bundle to invoke other services
func WithCMP ¶
func WithCMP(cmp dashboardPb.ClusterResourceServer) Option
WithCMP sets the gRPC client to invoke CMP service Todo: the dependency on CMP will be moved to a service which is more suitable
func WithTrans ¶
func WithTrans(trans i18n.Translator) Option
WithTrans sets the translator for i18n
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func (*Project) ApplicationsResources ¶ added in v1.5.0
func (p *Project) ApplicationsResources(ctx context.Context, req *apistructs.ApplicationsResourcesRequest) ( *apistructs.ApplicationsResourcesResponse, *errorresp.APIError)
func (*Project) Get ¶
func (p *Project) Get(ctx context.Context, id uint64) (*apistructs.ProjectDTO, *errorresp.APIError)
Get gets the project info. id is the project id.
Click to show internal directories.
Click to hide internal directories.