github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/storage/dbmodel/operation.go (about)

     1  package dbmodel
     2  
     3  import (
     4  	"database/sql"
     5  	"time"
     6  
     7  	"github.com/kyma-project/kyma-environment-broker/internal"
     8  )
     9  
    10  // OperationFilter holds the filters when listing multiple operations
    11  type OperationFilter struct {
    12  	InstanceFilter *InstanceFilter
    13  	Page           int
    14  	PageSize       int
    15  	States         []string
    16  }
    17  
    18  type OperationDTO struct {
    19  	ID        string
    20  	Version   int
    21  	CreatedAt time.Time
    22  	UpdatedAt time.Time
    23  
    24  	InstanceID        string
    25  	OrchestrationID   sql.NullString
    26  	TargetOperationID string
    27  
    28  	Data                   string
    29  	State                  string
    30  	Description            string
    31  	FinishedStages         sql.NullString
    32  	ProvisioningParameters sql.NullString
    33  
    34  	Type internal.OperationType
    35  }
    36  
    37  type OperationStatEntry struct {
    38  	Type       string
    39  	State      string
    40  	PlanID     string
    41  	InstanceID string
    42  }
    43  
    44  type InstanceByGlobalAccountIDStatEntry struct {
    45  	GlobalAccountID string
    46  	Total           int
    47  }
    48  
    49  type InstanceERSContextStatsEntry struct {
    50  	LicenseType sql.NullString
    51  	Total       int
    52  }