func (c *Client) GetGCRAuthorizationToken(
	ctx context.Context,
	projectID uint,
	req *types.GetRegistryGCRTokenRequest,
) (*types.GetRegistryTokenResponse, error) {
	resp := &types.GetRegistryTokenResponse{}
	err := c.getRequest(
		fmt.Sprintf(
			"/projects/%d/registries/gcr/token",
			projectID,
		),
		req,
		resp,
	)
	return resp, err
}
GetGCRAuthorizationToken gets a GCR authorization token
package client
import (
	"context"
	"fmt"
	"github.com/porter-dev/porter/api/types"
)
func (c *Client) CreateRegistry(
	ctx context.Context,
	projectID uint,
	req *types.CreateRegistryRequest,
) (*types.Registry, error) {
	resp := &types.Registry{}
	err := c.postRequest(
		fmt.Sprintf(
			"/projects/%d/registries",
			projectID,
		),
		req,
		resp,
	)
	return resp, err
}
func (c *Client) ListRegistries(
	ctx context.Context,
	projectID uint,
) (*types.RegistryListResponse, error) {
	resp := &types.RegistryListResponse{}
	err := c.getRequest(
		fmt.Sprintf(
			"/projects/%d/registries",
			projectID,
		),
		nil,
		resp,
	)
	return resp, err
}
func (c *Client) DeleteProjectRegistry(
	ctx context.Context,
	projectID uint,
	registryID uint,
) error {
	return c.deleteRequest(
		fmt.Sprintf(
			"/projects/%d/registries/%d",
			projectID,
			registryID,
		),
		nil,
		nil,
	)
}
func (c *Client) GetECRAuthorizationToken(
	ctx context.Context,
	projectID uint,
	req *types.GetRegistryECRTokenRequest,
) (*types.GetRegistryTokenResponse, error) {
	resp := &types.GetRegistryTokenResponse{}
	err := c.getRequest(
		fmt.Sprintf(
			"/projects/%d/registries/ecr/token",
			projectID,
		),
		req,
		resp,
	)
	return resp, err
}