secret

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateSecretOpts

type CreateSecretOpts struct {
	Namespace  string            `json:"-"`
	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 ListMeta

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

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"`
	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 SecretDeleteResp

type SecretDeleteResp 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) (*SecretDeleteResp, error)

type SecretResp

type SecretResp 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 CreateSecretOpts) (*SecretResp, error)

func Get

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

func Update

func Update(client *golangsdk.ServiceClient, namespace, name string, opts UpdateSecretOpts) (*SecretResp, error)

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 UpdateSecretOpts

type UpdateSecretOpts struct {
	Namespace  string            `json:"-"`
	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