common

package
v1.53.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreMock

type StoreMock struct {
	mock.Mock
}

func NewMockStore added in v1.51.0

func NewMockStore(t interface {
	mock.TestingT
	Cleanup(func())
},
) *StoreMock

func (*StoreMock) CountFlags

func (m *StoreMock) CountFlags(ctx context.Context, ns storage.NamespaceRequest) (uint64, error)

func (*StoreMock) CountNamespaces

func (m *StoreMock) CountNamespaces(ctx context.Context, p storage.ReferenceRequest) (uint64, error)

func (*StoreMock) CountRollouts

func (m *StoreMock) CountRollouts(ctx context.Context, flag storage.ResourceRequest) (uint64, error)

func (*StoreMock) CountRules

func (m *StoreMock) CountRules(ctx context.Context, flag storage.ResourceRequest) (uint64, error)

func (*StoreMock) CountSegments

func (m *StoreMock) CountSegments(ctx context.Context, ns storage.NamespaceRequest) (uint64, error)

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 (m *StoreMock) CreateFlag(ctx context.Context, r *flipt.CreateFlagRequest) (*flipt.Flag, error)

func (*StoreMock) CreateNamespace

func (m *StoreMock) CreateNamespace(ctx context.Context, r *flipt.CreateNamespaceRequest) (*flipt.Namespace, error)

func (*StoreMock) CreateRollout

func (m *StoreMock) CreateRollout(ctx context.Context, r *flipt.CreateRolloutRequest) (*flipt.Rollout, error)

func (*StoreMock) CreateRule

func (m *StoreMock) CreateRule(ctx context.Context, r *flipt.CreateRuleRequest) (*flipt.Rule, error)

func (*StoreMock) CreateSegment

func (m *StoreMock) CreateSegment(ctx context.Context, r *flipt.CreateSegmentRequest) (*flipt.Segment, error)

func (*StoreMock) CreateVariant

func (m *StoreMock) CreateVariant(ctx context.Context, r *flipt.CreateVariantRequest) (*flipt.Variant, error)

func (*StoreMock) DeleteConstraint

func (m *StoreMock) DeleteConstraint(ctx context.Context, r *flipt.DeleteConstraintRequest) error

func (*StoreMock) DeleteDistribution

func (m *StoreMock) DeleteDistribution(ctx context.Context, r *flipt.DeleteDistributionRequest) error

func (*StoreMock) DeleteFlag

func (m *StoreMock) DeleteFlag(ctx context.Context, r *flipt.DeleteFlagRequest) error

func (*StoreMock) DeleteNamespace

func (m *StoreMock) DeleteNamespace(ctx context.Context, r *flipt.DeleteNamespaceRequest) error

func (*StoreMock) DeleteRollout

func (m *StoreMock) DeleteRollout(ctx context.Context, r *flipt.DeleteRolloutRequest) error

func (*StoreMock) DeleteRule

func (m *StoreMock) DeleteRule(ctx context.Context, r *flipt.DeleteRuleRequest) error

func (*StoreMock) DeleteSegment

func (m *StoreMock) DeleteSegment(ctx context.Context, r *flipt.DeleteSegmentRequest) error

func (*StoreMock) DeleteVariant

func (m *StoreMock) DeleteVariant(ctx context.Context, r *flipt.DeleteVariantRequest) error

func (*StoreMock) GetEvaluationDistributions

func (m *StoreMock) GetEvaluationDistributions(ctx context.Context, rule storage.IDRequest) ([]*storage.EvaluationDistribution, error)

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) GetFlag

func (m *StoreMock) GetFlag(ctx context.Context, flag storage.ResourceRequest) (*flipt.Flag, error)

func (*StoreMock) GetNamespace

func (m *StoreMock) GetNamespace(ctx context.Context, ns storage.NamespaceRequest) (*flipt.Namespace, error)

func (*StoreMock) GetRollout

func (m *StoreMock) GetRollout(ctx context.Context, ns storage.NamespaceRequest, id string) (*flipt.Rollout, error)

func (*StoreMock) GetRule

func (m *StoreMock) GetRule(ctx context.Context, ns storage.NamespaceRequest, id string) (*flipt.Rule, error)

func (*StoreMock) GetSegment

func (m *StoreMock) GetSegment(ctx context.Context, segment storage.ResourceRequest) (*flipt.Segment, error)

func (*StoreMock) GetVersion added in v1.46.0

func (m *StoreMock) GetVersion(ctx context.Context, ns storage.NamespaceRequest) (string, error)

func (*StoreMock) ListFlags

func (*StoreMock) ListRules

func (*StoreMock) OrderRollouts

func (m *StoreMock) OrderRollouts(ctx context.Context, r *flipt.OrderRolloutsRequest) error

func (*StoreMock) OrderRules

func (m *StoreMock) OrderRules(ctx context.Context, r *flipt.OrderRulesRequest) error

func (*StoreMock) String

func (m *StoreMock) String() string

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 (m *StoreMock) UpdateFlag(ctx context.Context, r *flipt.UpdateFlagRequest) (*flipt.Flag, error)

func (*StoreMock) UpdateNamespace

func (m *StoreMock) UpdateNamespace(ctx context.Context, r *flipt.UpdateNamespaceRequest) (*flipt.Namespace, error)

func (*StoreMock) UpdateRollout

func (m *StoreMock) UpdateRollout(ctx context.Context, r *flipt.UpdateRolloutRequest) (*flipt.Rollout, error)

func (*StoreMock) UpdateRule

func (m *StoreMock) UpdateRule(ctx context.Context, r *flipt.UpdateRuleRequest) (*flipt.Rule, error)

func (*StoreMock) UpdateSegment

func (m *StoreMock) UpdateSegment(ctx context.Context, r *flipt.UpdateSegmentRequest) (*flipt.Segment, error)

func (*StoreMock) UpdateVariant

func (m *StoreMock) UpdateVariant(ctx context.Context, r *flipt.UpdateVariantRequest) (*flipt.Variant, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL