Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterBackup ¶
type ClusterBackup []interface{}
func FetchClusterBackup ¶
func FetchClusterBackup(ctx context.Context, opts ClusterBackupOptions) (*ClusterBackup, error)
func (*ClusterBackup) ToJSON ¶
func (c *ClusterBackup) ToJSON() ([]byte, error)
func (*ClusterBackup) ToYAML ¶
func (c *ClusterBackup) ToYAML() ([]byte, error)
type ClusterBackupOptions ¶
type ClusterBackupOptions struct { RestConfig *rest.Config // FormatResources, if set, will remove certain fields from the resources FormatResources bool IncludeCertificates bool IncludeIssuers bool IncludeCertificateRequestPolicies bool }
ClusterBackupOptions wraps the options for fetching a cluster backup, sometimes not all resources are required, so these options allow for filtering and formatting.
Click to show internal directories.
Click to hide internal directories.