Documentation ¶
Index ¶
- type MultiVariateEvaluator
- type Server
- func (s *Server) AllowsNamespaceScopedAuthentication(ctx context.Context) bool
- func (s *Server) BatchEvaluate(ctx context.Context, r *flipt.BatchEvaluationRequest) (*flipt.BatchEvaluationResponse, error)
- func (s *Server) CreateConstraint(ctx context.Context, r *flipt.CreateConstraintRequest) (*flipt.Constraint, error)
- func (s *Server) CreateDistribution(ctx context.Context, r *flipt.CreateDistributionRequest) (*flipt.Distribution, error)
- func (s *Server) CreateFlag(ctx context.Context, r *flipt.CreateFlagRequest) (*flipt.Flag, error)
- func (s *Server) CreateNamespace(ctx context.Context, r *flipt.CreateNamespaceRequest) (*flipt.Namespace, error)
- func (s *Server) CreateRollout(ctx context.Context, r *flipt.CreateRolloutRequest) (*flipt.Rollout, error)
- func (s *Server) CreateRule(ctx context.Context, r *flipt.CreateRuleRequest) (*flipt.Rule, error)
- func (s *Server) CreateSegment(ctx context.Context, r *flipt.CreateSegmentRequest) (*flipt.Segment, error)
- func (s *Server) CreateVariant(ctx context.Context, r *flipt.CreateVariantRequest) (*flipt.Variant, error)
- func (s *Server) DeleteConstraint(ctx context.Context, r *flipt.DeleteConstraintRequest) (*empty.Empty, error)
- func (s *Server) DeleteDistribution(ctx context.Context, r *flipt.DeleteDistributionRequest) (*empty.Empty, error)
- func (s *Server) DeleteFlag(ctx context.Context, r *flipt.DeleteFlagRequest) (*empty.Empty, error)
- func (s *Server) DeleteNamespace(ctx context.Context, r *flipt.DeleteNamespaceRequest) (*empty.Empty, error)
- func (s *Server) DeleteRollout(ctx context.Context, r *flipt.DeleteRolloutRequest) (*empty.Empty, error)
- func (s *Server) DeleteRule(ctx context.Context, r *flipt.DeleteRuleRequest) (*empty.Empty, error)
- func (s *Server) DeleteSegment(ctx context.Context, r *flipt.DeleteSegmentRequest) (*empty.Empty, error)
- func (s *Server) DeleteVariant(ctx context.Context, r *flipt.DeleteVariantRequest) (*empty.Empty, error)
- func (s *Server) Evaluate(ctx context.Context, r *flipt.EvaluationRequest) (*flipt.EvaluationResponse, error)
- func (s *Server) GetFlag(ctx context.Context, r *flipt.GetFlagRequest) (*flipt.Flag, error)
- func (s *Server) GetNamespace(ctx context.Context, r *flipt.GetNamespaceRequest) (*flipt.Namespace, error)
- func (s *Server) GetRollout(ctx context.Context, r *flipt.GetRolloutRequest) (*flipt.Rollout, error)
- func (s *Server) GetRule(ctx context.Context, r *flipt.GetRuleRequest) (*flipt.Rule, error)
- func (s *Server) GetSegment(ctx context.Context, r *flipt.GetSegmentRequest) (*flipt.Segment, error)
- func (s *Server) ListFlags(ctx context.Context, r *flipt.ListFlagRequest) (*flipt.FlagList, error)
- func (s *Server) ListNamespaces(ctx context.Context, r *flipt.ListNamespaceRequest) (*flipt.NamespaceList, error)
- func (s *Server) ListRollouts(ctx context.Context, r *flipt.ListRolloutRequest) (*flipt.RolloutList, error)
- func (s *Server) ListRules(ctx context.Context, r *flipt.ListRuleRequest) (*flipt.RuleList, error)
- func (s *Server) ListSegments(ctx context.Context, r *flipt.ListSegmentRequest) (*flipt.SegmentList, error)
- func (s *Server) OrderRollouts(ctx context.Context, r *flipt.OrderRolloutsRequest) (*empty.Empty, error)
- func (s *Server) OrderRules(ctx context.Context, r *flipt.OrderRulesRequest) (*empty.Empty, error)
- func (s *Server) RegisterGRPC(server *grpc.Server)
- func (s *Server) UpdateConstraint(ctx context.Context, r *flipt.UpdateConstraintRequest) (*flipt.Constraint, error)
- func (s *Server) UpdateDistribution(ctx context.Context, r *flipt.UpdateDistributionRequest) (*flipt.Distribution, error)
- func (s *Server) UpdateFlag(ctx context.Context, r *flipt.UpdateFlagRequest) (*flipt.Flag, error)
- func (s *Server) UpdateNamespace(ctx context.Context, r *flipt.UpdateNamespaceRequest) (*flipt.Namespace, error)
- func (s *Server) UpdateRollout(ctx context.Context, r *flipt.UpdateRolloutRequest) (*flipt.Rollout, error)
- func (s *Server) UpdateRule(ctx context.Context, r *flipt.UpdateRuleRequest) (*flipt.Rule, error)
- func (s *Server) UpdateSegment(ctx context.Context, r *flipt.UpdateSegmentRequest) (*flipt.Segment, error)
- func (s *Server) 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 MultiVariateEvaluator ¶ added in v1.24.0
type MultiVariateEvaluator interface {
Evaluate(ctx context.Context, flag *flipt.Flag, r *rpcevaluation.EvaluationRequest) (*flipt.EvaluationResponse, error)
}
MultiVariateEvaluator is an abstraction for evaluating a flag against a set of rules for multi-variate flags.
type Server ¶
type Server struct { flipt.UnimplementedFliptServer // contains filtered or unexported fields }
Server serves the Flipt backend
func (*Server) AllowsNamespaceScopedAuthentication ¶ added in v1.31.0
func (*Server) BatchEvaluate ¶
func (s *Server) BatchEvaluate(ctx context.Context, r *flipt.BatchEvaluationRequest) (*flipt.BatchEvaluationResponse, error)
BatchEvaluate evaluates a request for multiple flags and entities
func (*Server) CreateConstraint ¶
func (s *Server) CreateConstraint(ctx context.Context, r *flipt.CreateConstraintRequest) (*flipt.Constraint, error)
CreateConstraint creates a constraint
func (*Server) CreateDistribution ¶
func (s *Server) CreateDistribution(ctx context.Context, r *flipt.CreateDistributionRequest) (*flipt.Distribution, error)
CreateDistribution creates a distribution
func (*Server) CreateFlag ¶
CreateFlag creates a flag
func (*Server) CreateNamespace ¶ added in v1.20.0
func (s *Server) CreateNamespace(ctx context.Context, r *flipt.CreateNamespaceRequest) (*flipt.Namespace, error)
CreateNamespace creates a namespace
func (*Server) CreateRollout ¶ added in v1.24.0
func (*Server) CreateRule ¶
CreateRule creates a rule
func (*Server) CreateSegment ¶
func (s *Server) CreateSegment(ctx context.Context, r *flipt.CreateSegmentRequest) (*flipt.Segment, error)
CreateSegment creates a segment
func (*Server) CreateVariant ¶
func (s *Server) CreateVariant(ctx context.Context, r *flipt.CreateVariantRequest) (*flipt.Variant, error)
CreateVariant creates a variant
func (*Server) DeleteConstraint ¶
func (s *Server) DeleteConstraint(ctx context.Context, r *flipt.DeleteConstraintRequest) (*empty.Empty, error)
DeleteConstraint deletes a constraint
func (*Server) DeleteDistribution ¶
func (s *Server) DeleteDistribution(ctx context.Context, r *flipt.DeleteDistributionRequest) (*empty.Empty, error)
DeleteDistribution deletes a distribution
func (*Server) DeleteFlag ¶
DeleteFlag deletes a flag
func (*Server) DeleteNamespace ¶ added in v1.20.0
func (s *Server) DeleteNamespace(ctx context.Context, r *flipt.DeleteNamespaceRequest) (*empty.Empty, error)
DeleteNamespace deletes a namespace
func (*Server) DeleteRollout ¶ added in v1.24.0
func (*Server) DeleteRule ¶
DeleteRule deletes a rule
func (*Server) DeleteSegment ¶
func (s *Server) DeleteSegment(ctx context.Context, r *flipt.DeleteSegmentRequest) (*empty.Empty, error)
DeleteSegment deletes a segment
func (*Server) DeleteVariant ¶
func (s *Server) DeleteVariant(ctx context.Context, r *flipt.DeleteVariantRequest) (*empty.Empty, error)
DeleteVariant deletes a variant
func (*Server) Evaluate ¶
func (s *Server) Evaluate(ctx context.Context, r *flipt.EvaluationRequest) (*flipt.EvaluationResponse, error)
Evaluate evaluates a request for a given flag and entity
func (*Server) GetNamespace ¶ added in v1.20.0
func (s *Server) GetNamespace(ctx context.Context, r *flipt.GetNamespaceRequest) (*flipt.Namespace, error)
GetNamespace gets a namespace
func (*Server) GetRollout ¶ added in v1.24.0
func (*Server) GetSegment ¶
func (s *Server) GetSegment(ctx context.Context, r *flipt.GetSegmentRequest) (*flipt.Segment, error)
GetSegment gets a segment
func (*Server) ListNamespaces ¶ added in v1.20.0
func (s *Server) ListNamespaces(ctx context.Context, r *flipt.ListNamespaceRequest) (*flipt.NamespaceList, error)
ListNamespaces lists all namespaces
func (*Server) ListRollouts ¶ added in v1.24.0
func (s *Server) ListRollouts(ctx context.Context, r *flipt.ListRolloutRequest) (*flipt.RolloutList, error)
func (*Server) ListSegments ¶
func (s *Server) ListSegments(ctx context.Context, r *flipt.ListSegmentRequest) (*flipt.SegmentList, error)
ListSegments lists all segments
func (*Server) OrderRollouts ¶ added in v1.24.0
func (*Server) OrderRules ¶
OrderRules orders rules
func (*Server) RegisterGRPC ¶ added in v1.17.0
RegisterGRPC registers the *Server onto the provided grpc Server.
func (*Server) UpdateConstraint ¶
func (s *Server) UpdateConstraint(ctx context.Context, r *flipt.UpdateConstraintRequest) (*flipt.Constraint, error)
UpdateConstraint updates an existing constraint
func (*Server) UpdateDistribution ¶
func (s *Server) UpdateDistribution(ctx context.Context, r *flipt.UpdateDistributionRequest) (*flipt.Distribution, error)
UpdateDistribution updates an existing distribution
func (*Server) UpdateFlag ¶
UpdateFlag updates an existing flag
func (*Server) UpdateNamespace ¶ added in v1.20.0
func (s *Server) UpdateNamespace(ctx context.Context, r *flipt.UpdateNamespaceRequest) (*flipt.Namespace, error)
UpdateNamespace updates an existing namespace
func (*Server) UpdateRollout ¶ added in v1.24.0
func (*Server) UpdateRule ¶
UpdateRule updates an existing rule
func (*Server) UpdateSegment ¶
func (s *Server) UpdateSegment(ctx context.Context, r *flipt.UpdateSegmentRequest) (*flipt.Segment, error)
UpdateSegment updates an existing segment
func (*Server) UpdateVariant ¶
func (s *Server) UpdateVariant(ctx context.Context, r *flipt.UpdateVariantRequest) (*flipt.Variant, error)
UpdateVariant updates an existing variant