Documentation ¶
Index ¶
- type PageToken
- type Store
- func (s *Store) CountFlags(ctx context.Context) (uint64, error)
- func (s *Store) CountRules(ctx context.Context) (uint64, error)
- func (s *Store) CountSegments(ctx context.Context) (uint64, error)
- func (s *Store) CreateConstraint(ctx context.Context, r *flipt.CreateConstraintRequest) (*flipt.Constraint, error)
- func (s *Store) CreateDistribution(ctx context.Context, r *flipt.CreateDistributionRequest) (*flipt.Distribution, error)
- func (s *Store) CreateFlag(ctx context.Context, r *flipt.CreateFlagRequest) (*flipt.Flag, error)
- func (s *Store) CreateRule(ctx context.Context, r *flipt.CreateRuleRequest) (*flipt.Rule, error)
- func (s *Store) CreateSegment(ctx context.Context, r *flipt.CreateSegmentRequest) (*flipt.Segment, error)
- func (s *Store) CreateVariant(ctx context.Context, r *flipt.CreateVariantRequest) (*flipt.Variant, error)
- func (s *Store) DeleteConstraint(ctx context.Context, r *flipt.DeleteConstraintRequest) error
- func (s *Store) DeleteDistribution(ctx context.Context, r *flipt.DeleteDistributionRequest) error
- func (s *Store) DeleteFlag(ctx context.Context, r *flipt.DeleteFlagRequest) error
- func (s *Store) DeleteRule(ctx context.Context, r *flipt.DeleteRuleRequest) error
- func (s *Store) DeleteSegment(ctx context.Context, r *flipt.DeleteSegmentRequest) error
- func (s *Store) DeleteVariant(ctx context.Context, r *flipt.DeleteVariantRequest) error
- func (s *Store) GetEvaluationDistributions(ctx context.Context, ruleID string) ([]*storage.EvaluationDistribution, error)
- func (s *Store) GetEvaluationRules(ctx context.Context, flagKey string) ([]*storage.EvaluationRule, error)
- func (s *Store) GetFlag(ctx context.Context, key string) (*flipt.Flag, error)
- func (s *Store) GetRule(ctx context.Context, id string) (*flipt.Rule, error)
- func (s *Store) GetSegment(ctx context.Context, key string) (*flipt.Segment, error)
- func (s *Store) ListFlags(ctx context.Context, opts ...storage.QueryOption) (storage.ResultSet[*flipt.Flag], error)
- func (s *Store) ListRules(ctx context.Context, flagKey string, opts ...storage.QueryOption) (storage.ResultSet[*flipt.Rule], error)
- func (s *Store) ListSegments(ctx context.Context, opts ...storage.QueryOption) (storage.ResultSet[*flipt.Segment], error)
- func (s *Store) OrderRules(ctx context.Context, r *flipt.OrderRulesRequest) error
- func (s *Store) UpdateConstraint(ctx context.Context, r *flipt.UpdateConstraintRequest) (*flipt.Constraint, error)
- func (s *Store) UpdateDistribution(ctx context.Context, r *flipt.UpdateDistributionRequest) (*flipt.Distribution, error)
- func (s *Store) UpdateFlag(ctx context.Context, r *flipt.UpdateFlagRequest) (*flipt.Flag, error)
- func (s *Store) UpdateRule(ctx context.Context, r *flipt.UpdateRuleRequest) (*flipt.Rule, error)
- func (s *Store) UpdateSegment(ctx context.Context, r *flipt.UpdateSegmentRequest) (*flipt.Segment, error)
- func (s *Store) UpdateVariant(ctx context.Context, r *flipt.UpdateVariantRequest) (*flipt.Variant, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CountFlags ¶
CountFlags counts all flags
func (*Store) CountRules ¶
CountRules counts all rules
func (*Store) CountSegments ¶
CountSegments counts all segments
func (*Store) CreateConstraint ¶
func (s *Store) CreateConstraint(ctx context.Context, r *flipt.CreateConstraintRequest) (*flipt.Constraint, error)
CreateConstraint creates a constraint
func (*Store) CreateDistribution ¶
func (s *Store) CreateDistribution(ctx context.Context, r *flipt.CreateDistributionRequest) (*flipt.Distribution, error)
CreateDistribution creates a distribution
func (*Store) CreateFlag ¶
CreateFlag creates a flag
func (*Store) CreateRule ¶
CreateRule creates a rule
func (*Store) CreateSegment ¶
func (s *Store) CreateSegment(ctx context.Context, r *flipt.CreateSegmentRequest) (*flipt.Segment, error)
CreateSegment creates a segment
func (*Store) CreateVariant ¶
func (s *Store) CreateVariant(ctx context.Context, r *flipt.CreateVariantRequest) (*flipt.Variant, error)
CreateVariant creates a variant
func (*Store) DeleteConstraint ¶
DeleteConstraint deletes a constraint
func (*Store) DeleteDistribution ¶
DeleteDistribution deletes a distribution
func (*Store) DeleteFlag ¶
DeleteFlag deletes a flag
func (*Store) DeleteRule ¶
DeleteRule deletes a rule
func (*Store) DeleteSegment ¶
DeleteSegment deletes a segment
func (*Store) DeleteVariant ¶
DeleteVariant deletes a variant
func (*Store) GetEvaluationDistributions ¶
func (*Store) GetEvaluationRules ¶
func (*Store) GetSegment ¶
GetSegment gets a segment
func (*Store) ListFlags ¶
func (s *Store) ListFlags(ctx context.Context, opts ...storage.QueryOption) (storage.ResultSet[*flipt.Flag], error)
ListFlags lists all flags
func (*Store) ListRules ¶
func (s *Store) ListRules(ctx context.Context, flagKey string, opts ...storage.QueryOption) (storage.ResultSet[*flipt.Rule], error)
ListRules gets all rules for a flag
func (*Store) ListSegments ¶
func (s *Store) ListSegments(ctx context.Context, opts ...storage.QueryOption) (storage.ResultSet[*flipt.Segment], error)
ListSegments lists all segments
func (*Store) OrderRules ¶
OrderRules orders rules
func (*Store) UpdateConstraint ¶
func (s *Store) UpdateConstraint(ctx context.Context, r *flipt.UpdateConstraintRequest) (*flipt.Constraint, error)
UpdateConstraint updates an existing constraint
func (*Store) UpdateDistribution ¶
func (s *Store) UpdateDistribution(ctx context.Context, r *flipt.UpdateDistributionRequest) (*flipt.Distribution, error)
UpdateDistribution updates an existing distribution
func (*Store) UpdateFlag ¶
UpdateFlag updates an existing flag
func (*Store) UpdateRule ¶
UpdateRule updates an existing rule
func (*Store) UpdateSegment ¶
func (s *Store) UpdateSegment(ctx context.Context, r *flipt.UpdateSegmentRequest) (*flipt.Segment, error)
UpdateSegment updates an existing segment
func (*Store) UpdateVariant ¶
func (s *Store) UpdateVariant(ctx context.Context, r *flipt.UpdateVariantRequest) (*flipt.Variant, error)
UpdateVariant updates an existing variant