Documentation ¶
Index ¶
- type StoreMock
- func (m *StoreMock) CountFlags(ctx context.Context, ns storage.NamespaceRequest) (uint64, error)
- func (m *StoreMock) CountNamespaces(ctx context.Context, p storage.ReferenceRequest) (uint64, error)
- func (m *StoreMock) CountRollouts(ctx context.Context, flag storage.ResourceRequest) (uint64, error)
- func (m *StoreMock) CountRules(ctx context.Context, flag storage.ResourceRequest) (uint64, error)
- func (m *StoreMock) CountSegments(ctx context.Context, ns storage.NamespaceRequest) (uint64, error)
- func (m *StoreMock) CreateConstraint(ctx context.Context, r *flipt.CreateConstraintRequest) (*flipt.Constraint, error)
- func (m *StoreMock) CreateDistribution(ctx context.Context, r *flipt.CreateDistributionRequest) (*flipt.Distribution, error)
- func (m *StoreMock) CreateFlag(ctx context.Context, r *flipt.CreateFlagRequest) (*flipt.Flag, error)
- func (m *StoreMock) CreateNamespace(ctx context.Context, r *flipt.CreateNamespaceRequest) (*flipt.Namespace, error)
- func (m *StoreMock) CreateRollout(ctx context.Context, r *flipt.CreateRolloutRequest) (*flipt.Rollout, error)
- func (m *StoreMock) CreateRule(ctx context.Context, r *flipt.CreateRuleRequest) (*flipt.Rule, error)
- func (m *StoreMock) CreateSegment(ctx context.Context, r *flipt.CreateSegmentRequest) (*flipt.Segment, error)
- func (m *StoreMock) CreateVariant(ctx context.Context, r *flipt.CreateVariantRequest) (*flipt.Variant, error)
- func (m *StoreMock) DeleteConstraint(ctx context.Context, r *flipt.DeleteConstraintRequest) error
- func (m *StoreMock) DeleteDistribution(ctx context.Context, r *flipt.DeleteDistributionRequest) error
- func (m *StoreMock) DeleteFlag(ctx context.Context, r *flipt.DeleteFlagRequest) error
- func (m *StoreMock) DeleteNamespace(ctx context.Context, r *flipt.DeleteNamespaceRequest) error
- func (m *StoreMock) DeleteRollout(ctx context.Context, r *flipt.DeleteRolloutRequest) error
- func (m *StoreMock) DeleteRule(ctx context.Context, r *flipt.DeleteRuleRequest) error
- func (m *StoreMock) DeleteSegment(ctx context.Context, r *flipt.DeleteSegmentRequest) error
- func (m *StoreMock) DeleteVariant(ctx context.Context, r *flipt.DeleteVariantRequest) error
- func (m *StoreMock) GetEvaluationDistributions(ctx context.Context, rule storage.IDRequest) ([]*storage.EvaluationDistribution, error)
- func (m *StoreMock) GetEvaluationRollouts(ctx context.Context, flag storage.ResourceRequest) ([]*storage.EvaluationRollout, error)
- func (m *StoreMock) GetEvaluationRules(ctx context.Context, flag storage.ResourceRequest) ([]*storage.EvaluationRule, error)
- func (m *StoreMock) GetFlag(ctx context.Context, flag storage.ResourceRequest) (*flipt.Flag, error)
- func (m *StoreMock) GetNamespace(ctx context.Context, ns storage.NamespaceRequest) (*flipt.Namespace, error)
- func (m *StoreMock) GetRollout(ctx context.Context, ns storage.NamespaceRequest, id string) (*flipt.Rollout, error)
- func (m *StoreMock) GetRule(ctx context.Context, ns storage.NamespaceRequest, id string) (*flipt.Rule, error)
- func (m *StoreMock) GetSegment(ctx context.Context, segment storage.ResourceRequest) (*flipt.Segment, error)
- func (m *StoreMock) GetVersion(ctx context.Context, ns storage.NamespaceRequest) (string, error)
- func (m *StoreMock) ListFlags(ctx context.Context, req *storage.ListRequest[storage.NamespaceRequest]) (storage.ResultSet[*flipt.Flag], error)
- func (m *StoreMock) ListNamespaces(ctx context.Context, req *storage.ListRequest[storage.ReferenceRequest]) (storage.ResultSet[*flipt.Namespace], error)
- func (m *StoreMock) ListRollouts(ctx context.Context, req *storage.ListRequest[storage.ResourceRequest]) (storage.ResultSet[*flipt.Rollout], error)
- func (m *StoreMock) ListRules(ctx context.Context, req *storage.ListRequest[storage.ResourceRequest]) (storage.ResultSet[*flipt.Rule], error)
- func (m *StoreMock) ListSegments(ctx context.Context, req *storage.ListRequest[storage.NamespaceRequest]) (storage.ResultSet[*flipt.Segment], error)
- func (m *StoreMock) OrderRollouts(ctx context.Context, r *flipt.OrderRolloutsRequest) error
- func (m *StoreMock) OrderRules(ctx context.Context, r *flipt.OrderRulesRequest) error
- func (m *StoreMock) String() string
- func (m *StoreMock) UpdateConstraint(ctx context.Context, r *flipt.UpdateConstraintRequest) (*flipt.Constraint, error)
- func (m *StoreMock) UpdateDistribution(ctx context.Context, r *flipt.UpdateDistributionRequest) (*flipt.Distribution, error)
- func (m *StoreMock) UpdateFlag(ctx context.Context, r *flipt.UpdateFlagRequest) (*flipt.Flag, error)
- func (m *StoreMock) UpdateNamespace(ctx context.Context, r *flipt.UpdateNamespaceRequest) (*flipt.Namespace, error)
- func (m *StoreMock) UpdateRollout(ctx context.Context, r *flipt.UpdateRolloutRequest) (*flipt.Rollout, error)
- func (m *StoreMock) UpdateRule(ctx context.Context, r *flipt.UpdateRuleRequest) (*flipt.Rule, error)
- func (m *StoreMock) UpdateSegment(ctx context.Context, r *flipt.UpdateSegmentRequest) (*flipt.Segment, error)
- func (m *StoreMock) 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 StoreMock ¶
func NewMockStore ¶ added in v1.51.0
func (*StoreMock) CountFlags ¶
func (*StoreMock) CountNamespaces ¶
func (*StoreMock) CountRollouts ¶
func (*StoreMock) CountRules ¶
func (*StoreMock) CountSegments ¶
func (*StoreMock) CreateConstraint ¶
func (m *StoreMock) CreateConstraint(ctx context.Context, r *flipt.CreateConstraintRequest) (*flipt.Constraint, error)
func (*StoreMock) CreateDistribution ¶
func (m *StoreMock) CreateDistribution(ctx context.Context, r *flipt.CreateDistributionRequest) (*flipt.Distribution, error)
func (*StoreMock) CreateFlag ¶
func (*StoreMock) CreateNamespace ¶
func (*StoreMock) CreateRollout ¶
func (*StoreMock) CreateRule ¶
func (*StoreMock) CreateSegment ¶
func (*StoreMock) CreateVariant ¶
func (*StoreMock) DeleteConstraint ¶
func (*StoreMock) DeleteDistribution ¶
func (*StoreMock) DeleteFlag ¶
func (*StoreMock) DeleteNamespace ¶
func (*StoreMock) DeleteRollout ¶
func (*StoreMock) DeleteRule ¶
func (*StoreMock) DeleteSegment ¶
func (*StoreMock) DeleteVariant ¶
func (*StoreMock) GetEvaluationDistributions ¶
func (*StoreMock) GetEvaluationRollouts ¶
func (m *StoreMock) GetEvaluationRollouts(ctx context.Context, flag storage.ResourceRequest) ([]*storage.EvaluationRollout, error)
func (*StoreMock) GetEvaluationRules ¶
func (m *StoreMock) GetEvaluationRules(ctx context.Context, flag storage.ResourceRequest) ([]*storage.EvaluationRule, error)
func (*StoreMock) GetNamespace ¶
func (*StoreMock) GetRollout ¶
func (*StoreMock) GetSegment ¶
func (*StoreMock) GetVersion ¶ added in v1.46.0
func (*StoreMock) ListNamespaces ¶
func (*StoreMock) ListRollouts ¶
func (*StoreMock) ListSegments ¶
func (*StoreMock) OrderRollouts ¶
func (*StoreMock) OrderRules ¶
func (*StoreMock) UpdateConstraint ¶
func (m *StoreMock) UpdateConstraint(ctx context.Context, r *flipt.UpdateConstraintRequest) (*flipt.Constraint, error)
func (*StoreMock) UpdateDistribution ¶
func (m *StoreMock) UpdateDistribution(ctx context.Context, r *flipt.UpdateDistributionRequest) (*flipt.Distribution, error)
func (*StoreMock) UpdateFlag ¶
func (*StoreMock) UpdateNamespace ¶
func (*StoreMock) UpdateRollout ¶
func (*StoreMock) UpdateRule ¶
func (*StoreMock) UpdateSegment ¶
func (*StoreMock) UpdateVariant ¶
Click to show internal directories.
Click to hide internal directories.