func (c *Credentials) Create(ctx context.Context, credential *envelope.Signed) (*envelope.Signed, error) {
	req, err := c.client.NewRequest("POST", "/credentials", nil, credential)
	if err != nil {
		log.Printf("Error building http request: %s", err)
		return nil, err
	}

	resp := &envelope.Signed{}
	_, err = c.client.Do(ctx, req, resp)
	if err != nil {
		return nil, err
	}

	return resp, nil
}
// Create creates the provided credential in the registry.
Create creates the provided credential in the registry.
// Create creates the provided credential in the registry .
func (c *Credentials) Create(ctx context.Context, credential *envelope.Signed) (*envelope.Signed, error) {
	req, err := c.client.NewRequest("POST", "/credentials", nil, credential)
	if err != nil {
		log.Printf("Error building http request: %s", err)
		return nil, err
	}
	resp := &envelope.Signed{}
	_, err = c.client.Do(ctx, req, resp)
	if err != nil {
		return nil, err
	}
	return resp, nil
}
func ( c * Credentials ) Create ( ctx context . Context , credential * envelope . Signed ) ( * envelope . Signed , error ) { req , err := c . client . NewRequest ( " " , " " , nil , credential ) if err != nil { log . Printf ( " " , err ) return nil , err } resp := & envelope . Signed { } _ , err = c . client . Do ( ctx , req , resp ) if err != nil { return nil , err } return resp , nil }
Create creates the provided credential in the registry.
Create creates the provided credential in the registry .