client

package
v1.3.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterPoliciesReadOnlyInterface

type ClusterPoliciesReadOnlyInterface interface {
	ReadOnlyClusterPolicies() ReadOnlyClusterPolicyInterface
}

ClusterPoliciesReadOnlyInterface has methods to work with ClusterPolicies resources in a namespace

type ClusterPolicyBindingsReadOnlyInterface

type ClusterPolicyBindingsReadOnlyInterface interface {
	ReadOnlyClusterPolicyBindings() ReadOnlyClusterPolicyBindingInterface
}

ClusterPolicyBindingsReadOnlyInterface has methods to work with ClusterPolicyBindings resources in a namespace

type PoliciesReadOnlyNamespacer

type PoliciesReadOnlyNamespacer interface {
	ReadOnlyPolicies(namespace string) ReadOnlyPolicyInterface
}

PoliciesReadOnlyNamespacer has methods to work with Policies resources in a namespace

type PolicyBindingsReadOnlyNamespacer

type PolicyBindingsReadOnlyNamespacer interface {
	ReadOnlyPolicyBindings(namespace string) ReadOnlyPolicyBindingInterface
}

PolicyBindingsReadOnlyNamespacer has methods to work with PolicyBindings resources in a namespace

type ReadOnlyClusterPolicyBindingInterface

type ReadOnlyClusterPolicyBindingInterface interface {
	List(options *kapi.ListOptions) (*authorizationapi.ClusterPolicyBindingList, error)
	Get(name string) (*authorizationapi.ClusterPolicyBinding, error)
}

ReadOnlyClusterPolicyBindingInterface exposes methods on ClusterPolicyBindings resources

type ReadOnlyClusterPolicyInterface

type ReadOnlyClusterPolicyInterface interface {
	List(options *kapi.ListOptions) (*authorizationapi.ClusterPolicyList, error)
	Get(name string) (*authorizationapi.ClusterPolicy, error)
}

ReadOnlyClusterPolicyInterface exposes methods on ClusterPolicies resources

type ReadOnlyPolicyBindingInterface

type ReadOnlyPolicyBindingInterface interface {
	List(options *kapi.ListOptions) (*authorizationapi.PolicyBindingList, error)
	Get(name string) (*authorizationapi.PolicyBinding, error)
}

ReadOnlyPolicyBindingInterface exposes methods on PolicyBindings resources

type ReadOnlyPolicyClient

type ReadOnlyPolicyClient interface {
	// Embedded interfaces to allow read-only access to policies and bindings on project and cluster level
	PoliciesReadOnlyNamespacer
	ClusterPoliciesReadOnlyInterface
	PolicyBindingsReadOnlyNamespacer
	ClusterPolicyBindingsReadOnlyInterface

	// Returns the last synced resource version for re-sync sanity checks
	LastSyncResourceVersion() string

	// Methods that enable the ReadOnlyPolicyClient to conform to rulevalidation.PolicyGetter and rulevalidation.BindingLister interfaces
	GetPolicy(ctx kapi.Context, name string) (*authorizationapi.Policy, error)
	ListPolicyBindings(ctx kapi.Context, options *kapi.ListOptions) (*authorizationapi.PolicyBindingList, error)
	GetClusterPolicy(ctx kapi.Context, name string) (*authorizationapi.ClusterPolicy, error)
	ListClusterPolicyBindings(ctx kapi.Context, options *kapi.ListOptions) (*authorizationapi.ClusterPolicyBindingList, error)
}

ReadOnlyPolicyClient exposes List() and Get() for policies and bindings along with the the last synced resource version

type ReadOnlyPolicyInterface

type ReadOnlyPolicyInterface interface {
	List(options *kapi.ListOptions) (*authorizationapi.PolicyList, error)
	Get(name string) (*authorizationapi.Policy, error)
}

ReadOnlyPolicyInterface exposes methods on Policies resources

Jump to

Keyboard shortcuts

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