cli/pkg/cmd/attestation/github/client.go
Meredith Lancaster 5462df5e7b start pulling in the github api client wrapper
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-03-01 16:31:23 -07:00

19 lines
430 B
Go

package github
import "github.com/cli/cli/v2/api"
type Client interface {
GetByRepoAndDigest(repo, digest string, limit int) ([]*Attestation, error)
GetByOwnerAndDigest(owner, digest string, limit int) ([]*Attestation, error)
}
type LiveClient struct {
apiClient api.Client
}
func NewLiveClient() (*LiveClient, error) {
apiClient := api.NewClientFromHTTP(httpClient)
return &LiveClient{
apiClient: apiClient,
}, nil
}