api_token.go 540 B

1234567891011121314
  1. package authmanagement
  2. import (
  3. "context"
  4. "errors"
  5. "github.com/bufbuild/connect-go"
  6. porterv1 "github.com/porter-dev/api-contracts/generated/go/porter/v1"
  7. )
  8. // APIToken returns an encoded token for programmatic access to the Porter UI
  9. func (a AuthManagementService) APIToken(ctx context.Context, req *connect.Request[porterv1.APITokenRequest]) (*connect.Response[porterv1.APITokenResponse], error) {
  10. return nil, connect.NewError(connect.CodeUnimplemented, errors.New("porter.v1.AuthManagementService.APIToken is not implemented"))
  11. }