Documentation ¶
Index ¶
- type PageToken
- type Store
- func (s *Store) CountFlags(ctx context.Context, p storage.NamespaceRequest) (uint64, error)
- func (s *Store) CountNamespaces(ctx context.Context, _ storage.ReferenceRequest) (uint64, error)
- func (s *Store) CountRollouts(ctx context.Context, flag storage.ResourceRequest) (uint64, error)
- func (s *Store) CountRules(ctx context.Context, flag storage.ResourceRequest) (uint64, error)
- func (s *Store) CountSegments(ctx context.Context, ns storage.NamespaceRequest) (uint64, error)
- func (s *Store) CreateConstraint(ctx context.Context, r *flipt.CreateConstraintRequest) (_ *flipt.Constraint, err error)
- func (s *Store) CreateDistribution(ctx context.Context, r *flipt.CreateDistributionRequest) (_ *flipt.Distribution, err error)
- func (s *Store) CreateFlag(ctx context.Context, r *flipt.CreateFlagRequest) (_ *flipt.Flag, err error)
- func (s *Store) CreateNamespace(ctx context.Context, r *flipt.CreateNamespaceRequest) (_ *flipt.Namespace, err error)
- func (s *Store) CreateRollout(ctx context.Context, r *flipt.CreateRolloutRequest) (_ *flipt.Rollout, err error)
- func (s *Store) CreateRule(ctx context.Context, r *flipt.CreateRuleRequest) (_ *flipt.Rule, err error)
- func (s *Store) CreateSegment(ctx context.Context, r *flipt.CreateSegmentRequest) (_ *flipt.Segment, err error)
- func (s *Store) CreateVariant(ctx context.Context, r *flipt.CreateVariantRequest) (*flipt.Variant, error)
- func (s *Store) DeleteConstraint(ctx context.Context, r *flipt.DeleteConstraintRequest) (err error)
- func (s *Store) DeleteDistribution(ctx context.Context, r *flipt.DeleteDistributionRequest) (err error)
- func (s *Store) DeleteFlag(ctx context.Context, r *flipt.DeleteFlagRequest) error
- func (s *Store) DeleteNamespace(ctx context.Context, r *flipt.DeleteNamespaceRequest) (err error)
- func (s *Store) DeleteRollout(ctx context.Context, r *flipt.DeleteRolloutRequest) (err error)
- func (s *Store) DeleteRule(ctx context.Context, r *flipt.DeleteRuleRequest) (err error)
- func (s *Store) DeleteSegment(ctx context.Context, r *flipt.DeleteSegmentRequest) (err error)
- func (s *Store) DeleteVariant(ctx context.Context, r *flipt.DeleteVariantRequest) (err error)
- func (s *Store) GetEvaluationDistributions(ctx context.Context, rule storage.IDRequest) (_ []*storage.EvaluationDistribution, err error)
- func (s *Store) GetEvaluationRollouts(ctx context.Context, flag storage.ResourceRequest) (_ []*storage.EvaluationRollout, err error)
- func (s *Store) GetEvaluationRules(ctx context.Context, flag storage.ResourceRequest) (_ []*storage.EvaluationRule, err error)
- func (s *Store) GetFlag(ctx context.Context, p storage.ResourceRequest) (*flipt.Flag, error)
- func (s *Store) GetNamespace(ctx context.Context, p storage.NamespaceRequest) (*flipt.Namespace, error)
- func (s *Store) GetRollout(ctx context.Context, ns storage.NamespaceRequest, id string) (*flipt.Rollout, error)
- func (s *Store) GetRule(ctx context.Context, ns storage.NamespaceRequest, id string) (*flipt.Rule, error)
- func (s *Store) GetSegment(ctx context.Context, req storage.ResourceRequest) (*flipt.Segment, error)
- func (s *Store) GetVersion(ctx context.Context, ns storage.NamespaceRequest) (string, error)
- func (s *Store) ListFlags(ctx context.Context, req *storage.ListRequest[storage.NamespaceRequest]) (storage.ResultSet[*flipt.Flag], error)
- func (s *Store) ListNamespaces(ctx context.Context, req *storage.ListRequest[storage.ReferenceRequest]) (storage.ResultSet[*flipt.Namespace], error)
- func (s *Store) ListRollouts(ctx context.Context, req *storage.ListRequest[storage.ResourceRequest]) (storage.ResultSet[*flipt.Rollout], error)
- func (s *Store) ListRules(ctx context.Context, req *storage.ListRequest[storage.ResourceRequest]) (storage.ResultSet[*flipt.Rule], error)
- func (s *Store) ListSegments(ctx context.Context, req *storage.ListRequest[storage.NamespaceRequest]) (storage.ResultSet[*flipt.Segment], error)
- func (s *Store) OrderRollouts(ctx context.Context, r *flipt.OrderRolloutsRequest) (err error)
- func (s *Store) OrderRules(ctx context.Context, r *flipt.OrderRulesRequest) (err error)
- func (s *Store) String() string
- func (s *Store) UpdateConstraint(ctx context.Context, r *flipt.UpdateConstraintRequest) (_ *flipt.Constraint, err error)
- func (s *Store) UpdateDistribution(ctx context.Context, r *flipt.UpdateDistributionRequest) (_ *flipt.Distribution, err error)
- func (s *Store) UpdateFlag(ctx context.Context, r *flipt.UpdateFlagRequest) (_ *flipt.Flag, err error)
- func (s *Store) UpdateNamespace(ctx context.Context, r *flipt.UpdateNamespaceRequest) (_ *flipt.Namespace, err error)
- func (s *Store) UpdateRollout(ctx context.Context, r *flipt.UpdateRolloutRequest) (_ *flipt.Rollout, err error)
- func (s *Store) UpdateRule(ctx context.Context, r *flipt.UpdateRuleRequest) (_ *flipt.Rule, err error)
- func (s *Store) UpdateSegment(ctx context.Context, r *flipt.UpdateSegmentRequest) (_ *flipt.Segment, err error)
- func (s *Store) UpdateVariant(ctx context.Context, r *flipt.UpdateVariantRequest) (_ *flipt.Variant, err 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) CountNamespaces ¶ added in v1.20.0
func (*Store) CountRollouts ¶ added in v1.24.0
CountRollouts counts all rollouts
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, err error)
CreateConstraint creates a constraint
func (*Store) CreateDistribution ¶
func (s *Store) CreateDistribution(ctx context.Context, r *flipt.CreateDistributionRequest) (_ *flipt.Distribution, err error)
CreateDistribution creates a distribution
func (*Store) CreateFlag ¶
func (s *Store) CreateFlag(ctx context.Context, r *flipt.CreateFlagRequest) (_ *flipt.Flag, err error)
CreateFlag creates a flag
func (*Store) CreateNamespace ¶ added in v1.20.0
func (*Store) CreateRollout ¶ added in v1.24.0
func (*Store) CreateRule ¶
func (s *Store) CreateRule(ctx context.Context, r *flipt.CreateRuleRequest) (_ *flipt.Rule, err error)
CreateRule creates a rule
func (*Store) CreateSegment ¶
func (s *Store) CreateSegment(ctx context.Context, r *flipt.CreateSegmentRequest) (_ *flipt.Segment, err 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 ¶
func (s *Store) DeleteDistribution(ctx context.Context, r *flipt.DeleteDistributionRequest) (err error)
DeleteDistribution deletes a distribution
func (*Store) DeleteFlag ¶
DeleteFlag deletes a flag
func (*Store) DeleteNamespace ¶ added in v1.20.0
func (*Store) DeleteRollout ¶ added in v1.24.0
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) GetEvaluationRollouts ¶ added in v1.24.0
func (s *Store) GetEvaluationRollouts(ctx context.Context, flag storage.ResourceRequest) (_ []*storage.EvaluationRollout, err error)
func (*Store) GetEvaluationRules ¶
func (s *Store) GetEvaluationRules(ctx context.Context, flag storage.ResourceRequest) (_ []*storage.EvaluationRule, err error)
func (*Store) GetNamespace ¶ added in v1.20.0
func (*Store) GetRollout ¶ added in v1.24.0
func (*Store) GetRule ¶
func (s *Store) GetRule(ctx context.Context, ns storage.NamespaceRequest, id string) (*flipt.Rule, error)
GetRule gets an individual rule with distributions by ID
func (*Store) GetSegment ¶
func (s *Store) GetSegment(ctx context.Context, req storage.ResourceRequest) (*flipt.Segment, error)
GetSegment gets a segment
func (*Store) GetVersion ¶ added in v1.46.0
func (*Store) ListFlags ¶
func (s *Store) ListFlags(ctx context.Context, req *storage.ListRequest[storage.NamespaceRequest]) (storage.ResultSet[*flipt.Flag], error)
ListFlags lists all flags with variants
func (*Store) ListNamespaces ¶ added in v1.20.0
func (*Store) ListRollouts ¶ added in v1.24.0
func (*Store) ListRules ¶
func (s *Store) ListRules(ctx context.Context, req *storage.ListRequest[storage.ResourceRequest]) (storage.ResultSet[*flipt.Rule], error)
ListRules gets all rules for a flag with distributions
func (*Store) ListSegments ¶
func (s *Store) ListSegments(ctx context.Context, req *storage.ListRequest[storage.NamespaceRequest]) (storage.ResultSet[*flipt.Segment], error)
ListSegments lists all segments
func (*Store) OrderRollouts ¶ added in v1.24.0
OrderRollouts orders rollouts
func (*Store) OrderRules ¶
OrderRules orders rules
func (*Store) UpdateConstraint ¶
func (s *Store) UpdateConstraint(ctx context.Context, r *flipt.UpdateConstraintRequest) (_ *flipt.Constraint, err error)
UpdateConstraint updates an existing constraint
func (*Store) UpdateDistribution ¶
func (s *Store) UpdateDistribution(ctx context.Context, r *flipt.UpdateDistributionRequest) (_ *flipt.Distribution, err error)
UpdateDistribution updates an existing distribution
func (*Store) UpdateFlag ¶
func (s *Store) UpdateFlag(ctx context.Context, r *flipt.UpdateFlagRequest) (_ *flipt.Flag, err error)
UpdateFlag updates an existing flag
func (*Store) UpdateNamespace ¶ added in v1.20.0
func (*Store) UpdateRollout ¶ added in v1.24.0
func (*Store) UpdateRule ¶
func (s *Store) UpdateRule(ctx context.Context, r *flipt.UpdateRuleRequest) (_ *flipt.Rule, err error)
UpdateRule updates an existing rule
func (*Store) UpdateSegment ¶
func (s *Store) UpdateSegment(ctx context.Context, r *flipt.UpdateSegmentRequest) (_ *flipt.Segment, err error)
UpdateSegment updates an existing segment
func (*Store) UpdateVariant ¶
func (s *Store) UpdateVariant(ctx context.Context, r *flipt.UpdateVariantRequest) (_ *flipt.Variant, err error)
UpdateVariant updates an existing variant