Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions cmds/db-manager/cleanup/evict.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
scdmodels "github.com/interuss/dss/pkg/scd/models"
scdrepos "github.com/interuss/dss/pkg/scd/repos"
scds "github.com/interuss/dss/pkg/scd/store"
dssstore "github.com/interuss/dss/pkg/store"
"github.com/interuss/stacktrace"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
Expand Down Expand Up @@ -100,7 +101,7 @@ func evict(cmd *cobra.Command, _ []string) error {
}
return nil
}
if err = scdStore.Transact(ctx, scdAction); err != nil {
if _, err = scdStore.Transact(ctx, dssstore.NewFuncOperation(scdAction)); err != nil {
return fmt.Errorf("failed to execute SCD transaction: %w", err)
}

Expand Down Expand Up @@ -145,7 +146,7 @@ func evict(cmd *cobra.Command, _ []string) error {

return nil
}
if err = ridStore.Transact(ctx, ridAction); err != nil {
if _, err = ridStore.Transact(ctx, dssstore.NewFuncOperation(ridAction)); err != nil {
return fmt.Errorf("failed to execute RID transaction: %w", err)
}

Expand Down
5 changes: 5 additions & 0 deletions cmds/dummy-oauth/api/dummyoauth/interface.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ type GetTokenRequest struct {
// The result of attempting to authorize this request
Auth api.AuthorizationResult
}

const GetTokenOperationID = "GetToken"

func (request *GetTokenRequest) OperationID() string { return GetTokenOperationID }

type GetTokenResponseSet struct {
// The requested token was generated successfully
Response200 *TokenResponse
Expand Down
62 changes: 62 additions & 0 deletions interfaces/openapi-to-go-server/example/api/rid/interface.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ type SearchIdentificationServiceAreasRequest struct {
// The result of attempting to authorize this request
Auth api.AuthorizationResult
}

const SearchIdentificationServiceAreasOperationID = "SearchIdentificationServiceAreas"

func (request *SearchIdentificationServiceAreasRequest) OperationID() string {
return SearchIdentificationServiceAreasOperationID
}

type SearchIdentificationServiceAreasResponseSet struct {
// Identification Service Areas were successfully retrieved.
Response200 *SearchIdentificationServiceAreasResponse
Expand Down Expand Up @@ -104,6 +111,13 @@ type GetIdentificationServiceAreaRequest struct {
// The result of attempting to authorize this request
Auth api.AuthorizationResult
}

const GetIdentificationServiceAreaOperationID = "GetIdentificationServiceArea"

func (request *GetIdentificationServiceAreaRequest) OperationID() string {
return GetIdentificationServiceAreaOperationID
}

type GetIdentificationServiceAreaResponseSet struct {
// Full information of the Identification Service Area was retrieved successfully.
Response200 *GetIdentificationServiceAreaResponse
Expand Down Expand Up @@ -137,6 +151,13 @@ type CreateIdentificationServiceAreaRequest struct {
// The result of attempting to authorize this request
Auth api.AuthorizationResult
}

const CreateIdentificationServiceAreaOperationID = "CreateIdentificationServiceArea"

func (request *CreateIdentificationServiceAreaRequest) OperationID() string {
return CreateIdentificationServiceAreaOperationID
}

type CreateIdentificationServiceAreaResponseSet struct {
// An existing Identification Service Area was created successfully in the DSS.
Response200 *PutIdentificationServiceAreaResponse
Expand Down Expand Up @@ -178,6 +199,13 @@ type UpdateIdentificationServiceAreaRequest struct {
// The result of attempting to authorize this request
Auth api.AuthorizationResult
}

const UpdateIdentificationServiceAreaOperationID = "UpdateIdentificationServiceArea"

func (request *UpdateIdentificationServiceAreaRequest) OperationID() string {
return UpdateIdentificationServiceAreaOperationID
}

type UpdateIdentificationServiceAreaResponseSet struct {
// An existing Identification Service Area was updated successfully in the DSS.
Response200 *PutIdentificationServiceAreaResponse
Expand Down Expand Up @@ -213,6 +241,13 @@ type DeleteIdentificationServiceAreaRequest struct {
// The result of attempting to authorize this request
Auth api.AuthorizationResult
}

const DeleteIdentificationServiceAreaOperationID = "DeleteIdentificationServiceArea"

func (request *DeleteIdentificationServiceAreaRequest) OperationID() string {
return DeleteIdentificationServiceAreaOperationID
}

type DeleteIdentificationServiceAreaResponseSet struct {
// Identification Service Area was successfully deleted from DSS.
Response200 *DeleteIdentificationServiceAreaResponse
Expand Down Expand Up @@ -245,6 +280,13 @@ type SearchSubscriptionsRequest struct {
// The result of attempting to authorize this request
Auth api.AuthorizationResult
}

const SearchSubscriptionsOperationID = "SearchSubscriptions"

func (request *SearchSubscriptionsRequest) OperationID() string {
return SearchSubscriptionsOperationID
}

type SearchSubscriptionsResponseSet struct {
// Subscriptions were retrieved successfully.
Response200 *SearchSubscriptionsResponse
Expand Down Expand Up @@ -272,6 +314,11 @@ type GetSubscriptionRequest struct {
// The result of attempting to authorize this request
Auth api.AuthorizationResult
}

const GetSubscriptionOperationID = "GetSubscription"

func (request *GetSubscriptionRequest) OperationID() string { return GetSubscriptionOperationID }

type GetSubscriptionResponseSet struct {
// Subscription information was retrieved successfully.
Response200 *GetSubscriptionResponse
Expand Down Expand Up @@ -305,6 +352,11 @@ type CreateSubscriptionRequest struct {
// The result of attempting to authorize this request
Auth api.AuthorizationResult
}

const CreateSubscriptionOperationID = "CreateSubscription"

func (request *CreateSubscriptionRequest) OperationID() string { return CreateSubscriptionOperationID }

type CreateSubscriptionResponseSet struct {
// A new Subscription was created successfully.
Response200 *PutSubscriptionResponse
Expand Down Expand Up @@ -347,6 +399,11 @@ type UpdateSubscriptionRequest struct {
// The result of attempting to authorize this request
Auth api.AuthorizationResult
}

const UpdateSubscriptionOperationID = "UpdateSubscription"

func (request *UpdateSubscriptionRequest) OperationID() string { return UpdateSubscriptionOperationID }

type UpdateSubscriptionResponseSet struct {
// An existing Subscription was updated successfully.
Response200 *PutSubscriptionResponse
Expand Down Expand Up @@ -383,6 +440,11 @@ type DeleteSubscriptionRequest struct {
// The result of attempting to authorize this request
Auth api.AuthorizationResult
}

const DeleteSubscriptionOperationID = "DeleteSubscription"

func (request *DeleteSubscriptionRequest) OperationID() string { return DeleteSubscriptionOperationID }

type DeleteSubscriptionResponseSet struct {
// Subscription was deleted successfully.
Response200 *DeleteSubscriptionResponse
Expand Down
Loading
Loading