MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / NewAPITokenCreate

Function NewAPITokenCreate

app/cli/pkg/action/apitoken_create.go:32–34  ·  view source on GitHub ↗
(cfg *ActionsOpts)

Source from the content-addressed store, hash-verified

30}
31
32func NewAPITokenCreate(cfg *ActionsOpts) *APITokenCreate {
33 return &APITokenCreate{cfg}
34}
35
36func (action *APITokenCreate) Run(ctx context.Context, name, description, projectName string, expiresIn *time.Duration) (*APITokenItem, error) {
37 client := pb.NewAPITokenServiceClient(action.cfg.CPConnection)

Callers 1

newAPITokenCreateCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected