Documentation
¶
Index ¶
- type CreateOpts
- type DeleteOpts
- type DeleteResult
- type ListMeta
- type ListOpts
- type ManagedFieldsEntry
- type ObjectMeta
- type OwnerReference
- type Preconditions
- type Secret
- func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*Secret, error)
- func ExtractSecrets(r pagination.NewPage) ([]Secret, error)
- func Get(client *golangsdk.ServiceClient, nameSpace, name string) (*Secret, error)
- func List(client *golangsdk.ServiceClient, namespace string, opts ListOpts) ([]Secret, error)
- func Update(client *golangsdk.ServiceClient, namespace, name string, opts UpdateOpts) (*Secret, error)
- type SecretPage
- type StatusCause
- type StatusDetails
- type UpdateOpts
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 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 Preconditions ¶
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 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 StatusDetails ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.