secret

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOpts added in v0.9.6

type CreateOpts struct {
	Namespace    string            `json:"-"`
	DryRun       string            `json:"-" q:"dryRun,omitempty"`
	FieldManager string            `json:"-" q:"fieldManager,omitempty"`
	Pretty       string            `json:"-" q:"pretty,omitempty"`
	APIVersion   string            `json:"apiVersion,omitempty"`
	Data         map[string]string `json:"data,omitempty"`
	Immutable    *bool             `json:"immutable,omitempty"`
	Kind         string            `json:"kind,omitempty"`
	Metadata     *ObjectMeta       `json:"metadata,omitempty"`
	StringData   map[string]string `json:"stringData,omitempty"`
	Type         string            `json:"type,omitempty"`
}

type DeleteOpts

type DeleteOpts struct {
	Namespace          string         `json:"-"`
	Name               string         `json:"-"`
	APIVersion         string         `json:"apiVersion,omitempty"`
	Kind               string         `json:"kind,omitempty"`
	GracePeriodSeconds *int64         `json:"gracePeriodSeconds,omitempty"`
	PropagationPolicy  string         `json:"propagationPolicy,omitempty"`
	DryRun             []string       `json:"dryRun,omitempty"`
	OrphanDependents   *bool          `json:"orphanDependents,omitempty"`
	Preconditions      *Preconditions `json:"preconditions,omitempty"`
}

type DeleteResult added in v0.9.6

type DeleteResult struct {
	APIVersion string         `json:"apiVersion"`
	Code       int            `json:"code"`
	Details    *StatusDetails `json:"details"`
	Kind       string         `json:"kind"`
	Message    string         `json:"message"`
	Metadata   *ListMeta      `json:"metadata"`
	Reason     string         `json:"reason"`
	Status     string         `json:"status"`
}

func Delete

func Delete(client *golangsdk.ServiceClient, opts DeleteOpts) (*DeleteResult, error)

type ListMeta

type ListMeta struct {
	Continue           string `json:"continue"`
	RemainingItemCount int64  `json:"remainingItemCount"`
	ResourceVersion    string `json:"resourceVersion"`
	SelfLink           string `json:"selfLink"`
}

type ListOpts added in v0.9.6

type ListOpts struct {
	// AllowWatchBookmarks requests watch events with type "BOOKMARK"
	AllowWatchBookmarks *bool `q:"allowWatchBookmarks,omitempty"`

	// Continue option should be set when retrieving more results from the server
	Continue string `q:"continue,omitempty"`

	// FieldSelector is a selector to restrict the list of returned objects by their fields
	FieldSelector string `q:"fieldSelector,omitempty"`

	// LabelSelector is a selector to restrict the list of returned objects by their labels
	LabelSelector string `q:"labelSelector,omitempty"`

	// Limit is a maximum number of responses to return for a list call
	Limit *int `q:"limit,omitempty"`

	// ResourceVersion sets a constraint on what resource versions a request may be served from
	ResourceVersion string `q:"resourceVersion,omitempty"`

	// ResourceVersionMatch determines how resourceVersion is applied to list calls
	ResourceVersionMatch string `q:"resourceVersionMatch,omitempty"`

	// SendInitialEvents when set together with Watch option
	SendInitialEvents *bool `q:"sendInitialEvents,omitempty"`

	// TimeoutSeconds is timeout for the list/watch call
	TimeoutSeconds *int `q:"timeoutSeconds,omitempty"`

	// Watch for changes to the described resources
	Watch *bool `q:"watch,omitempty"`

	// Pretty if 'true', then the output is pretty printed
	Pretty string `q:"pretty,omitempty"`
}

ListOpts allows the filtering and sorting of paginated collections through the API

type ManagedFieldsEntry

type ManagedFieldsEntry struct {
	APIVersion  string      `json:"apiVersion,omitempty"`
	FieldsType  string      `json:"fieldsType,omitempty"`
	FieldsV1    interface{} `json:"fieldsV1,omitempty"`
	Manager     string      `json:"manager,omitempty"`
	Operation   string      `json:"operation,omitempty"`
	Subresource string      `json:"subresource,omitempty"`
	Time        string      `json:"time,omitempty"`
}

type ObjectMeta

type ObjectMeta struct {
	Annotations                map[string]string    `json:"annotations,omitempty"`
	ClusterName                string               `json:"clusterName,omitempty"`
	CreationTimestamp          string               `json:"creationTimestamp,omitempty"`
	DeletionGracePeriodSeconds *int64               `json:"deletionGracePeriodSeconds,omitempty"`
	DeletionTimestamp          string               `json:"deletionTimestamp,omitempty"`
	Enable                     *bool                `json:"enable,omitempty"`
	Finalizers                 []string             `json:"finalizers,omitempty"`
	GenerateName               string               `json:"generateName,omitempty"`
	Generation                 *int64               `json:"generation,omitempty"`
	Labels                     map[string]string    `json:"labels,omitempty"`
	ManagedFields              []ManagedFieldsEntry `json:"managedFields,omitempty"`
	Name                       string               `json:"name,omitempty"`
	Namespace                  string               `json:"namespace,omitempty"`
	OwnerReferences            []OwnerReference     `json:"ownerReferences,omitempty"`
	ResourceVersion            string               `json:"resourceVersion,omitempty"`
	SelfLink                   string               `json:"selfLink,omitempty"`
	UID                        string               `json:"uid,omitempty"`
}

type OwnerReference

type OwnerReference struct {
	APIVersion         string `json:"apiVersion"`
	BlockOwnerDeletion *bool  `json:"blockOwnerDeletion,omitempty"`
	Controller         *bool  `json:"controller,omitempty"`
	Kind               string `json:"kind"`
	Name               string `json:"name"`
	UID                string `json:"uid"`
}

type Preconditions

type Preconditions struct {
	ResourceVersion string `json:"resourceVersion,omitempty"`
	UID             string `json:"uid,omitempty"`
}

type Secret added in v0.9.6

type Secret struct {
	APIVersion string            `json:"apiVersion,omitempty"`
	Data       map[string]string `json:"data,omitempty"`
	Immutable  *bool             `json:"immutable,omitempty"`
	Kind       string            `json:"kind,omitempty"`
	Metadata   ObjectMeta        `json:"metadata,omitempty"`
	StringData map[string]string `json:"stringData,omitempty"`
	Type       string            `json:"type,omitempty"`
}

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*Secret, error)

func ExtractSecrets added in v0.9.6

func ExtractSecrets(r pagination.NewPage) ([]Secret, error)

ExtractSecrets accepts a Page struct and extracts the elements into a slice of Secret structs

func Get

func Get(client *golangsdk.ServiceClient, nameSpace, name string) (*Secret, error)

func List added in v0.9.6

func List(client *golangsdk.ServiceClient, namespace string, opts ListOpts) ([]Secret, error)

List returns collection of secrets in a namespace

func Update

func Update(client *golangsdk.ServiceClient, namespace, name string, opts UpdateOpts) (*Secret, error)

type SecretPage added in v0.9.6

type SecretPage struct {
	pagination.NewSinglePageBase
}

SecretPage is the page returned by a pager when traversing over a collection of secrets

type StatusCause

type StatusCause struct {
	Field   string `json:"field"`
	Message string `json:"message"`
	Reason  string `json:"reason"`
}

type StatusDetails

type StatusDetails struct {
	Causes            []StatusCause `json:"causes"`
	Group             string        `json:"group"`
	Kind              string        `json:"kind"`
	Name              string        `json:"name"`
	RetryAfterSeconds int           `json:"retryAfterSeconds"`
	UID               string        `json:"uid"`
}

type UpdateOpts added in v0.9.6

type UpdateOpts struct {
	DryRun       string            `json:"-" q:"dryRun,omitempty"`
	FieldManager string            `json:"-" q:"fieldManager,omitempty"`
	Pretty       string            `json:"-" q:"pretty,omitempty"`
	APIVersion   string            `json:"apiVersion,omitempty"`
	Data         map[string]string `json:"data,omitempty"`
	Immutable    *bool             `json:"immutable,omitempty"`
	Kind         string            `json:"kind,omitempty"`
	Metadata     *ObjectMeta       `json:"metadata,omitempty"`
	StringData   map[string]string `json:"stringData,omitempty"`
	Type         string            `json:"type,omitempty"`
}

Jump to

Keyboard shortcuts

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