Documentation ¶
Index ¶
- type ClusterStateInterface
- type ClusterStateRepository
- func (r *ClusterStateRepository) QueryByID(ctx context.Context, clusterID uuid.UUID) (*models.ClusterState, error)
- func (r *ClusterStateRepository) Save(ctx context.Context, clusterState models.ClusterState) (*models.ClusterState, error)
- func (r *ClusterStateRepository) Update(ctx context.Context, params models.ClusterState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterStateInterface ¶
type ClusterStateInterface interface { Save(ctx context.Context, state models.ClusterState) (*models.ClusterState, error) QueryByID(ctx context.Context, clusterID uuid.UUID) (*models.ClusterState, error) Update(ctx context.Context, params models.ClusterState) error }
type ClusterStateRepository ¶
type ClusterStateRepository struct {
// contains filtered or unexported fields
}
func NewClusterStateRepository ¶
func NewClusterStateRepository(db *database.DB) *ClusterStateRepository
func (*ClusterStateRepository) QueryByID ¶
func (r *ClusterStateRepository) QueryByID(ctx context.Context, clusterID uuid.UUID) (*models.ClusterState, error)
func (*ClusterStateRepository) Save ¶
func (r *ClusterStateRepository) Save(ctx context.Context, clusterState models.ClusterState) (*models.ClusterState, error)
func (*ClusterStateRepository) Update ¶
func (r *ClusterStateRepository) Update(ctx context.Context, params models.ClusterState) error
Click to show internal directories.
Click to hide internal directories.