options

package
v0.0.0-...-21cfbab Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0, 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 DeleteOptions

type DeleteOptions struct {
	// When specified:
	// - if unset, then the result is returned from remote storage based on quorum-read flag;
	// - if set to non zero, then the result is at least as fresh as given rv.
	// +optional
	ResourceVersion string

	// If non-nil and supported by the backend (only KDD WorkloadEndpoints at the time of writing),
	// only delete the resource if its UID matches.
	UID *types.UID
}

DeleteOptions is the standard options for deleting a resource through the Calico API.

type GetOptions

type GetOptions struct {
	// When specified:
	// - if unset, then the result is returned from remote storage based on quorum-read flag;
	// - if set to non zero, then the result is at least as fresh as given rv.
	// +optional
	ResourceVersion string
}

GetOptions is the standard query options for getting a resource through the Calico API.

type ListOptions

type ListOptions struct {
	// The namespace of the resource to List or Watch.  If blank, the list or watch wildcards
	// the namespace.  Only used for namespaced resource types.
	Namespace string

	// The name of the resource to List or Watch.  If blank, the list or watch wildcards
	// the name.
	Name string

	// The resource version to List or Watch from.
	// When specified for list:
	// - if unset, then the result is returned from remote storage based on quorum-read flag;
	// - if set to non zero, then the result is at least as fresh as given rv.
	// +optional
	ResourceVersion string

	// Whether the Name specified is a prefix rather than the full name.  This is fully supported
	// for etcdv3, and is supported in a very limited fashion in KDD for WorkloadEndpoints only
	// as a mechanism for enumerating endpoints within a Pod (since the name construction for a
	// Workload endpoint is hierarchically constructed).
	Prefix bool
}

ListOptions is the query options a List or Watch operation in the Calico API.

type SetOptions

type SetOptions struct {
	// TTL for the datastore entry.
	// +optional
	TTL time.Duration
}

SetOptions is the standard options for Create/Update actions on the Calico API.

Jump to

Keyboard shortcuts

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