client

package
v0.24.0-dev Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package client provides methods to interact with Feature and FeatureGate resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureGateClient

type FeatureGateClient struct {
	// contains filtered or unexported fields
}

FeatureGateClient defines methods to interact with FeatureGate resources

func NewFeatureGateClient

func NewFeatureGateClient(options ...Option) (*FeatureGateClient, error)

NewFeatureGateClient returns an instance of FeatureGateClient.

func (*FeatureGateClient) ActivateFeature

func (f *FeatureGateClient) ActivateFeature(ctx context.Context, featureName, featureGateName string) error

ActivateFeature activates a Feature

func (*FeatureGateClient) DeactivateFeature

func (f *FeatureGateClient) DeactivateFeature(ctx context.Context, featureName, featureGateName string) error

DeactivateFeature deactivates a Feature

func (*FeatureGateClient) GetFeature

func (f *FeatureGateClient) GetFeature(ctx context.Context, featureName string) (*configv1alpha1.Feature, error)

GetFeature fetches the Feature

func (*FeatureGateClient) GetFeatureGate

func (f *FeatureGateClient) GetFeatureGate(ctx context.Context, featureGateName string) (*configv1alpha1.FeatureGate, error)

GetFeatureGate fetches the FeatureGate

type Option

type Option func(*FeatureGateClient) *FeatureGateClient

Option is FeatureGateClient Option definition

func WithClient

func WithClient(cl client.Client) Option

WithClient function is for setting the passed in client when creating FeatureGateClient

Directories

Path Synopsis
Package fake provides data needed for testing
Package fake provides data needed for testing

Jump to

Keyboard shortcuts

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