Documentation ¶
Index ¶
- type ApplyOpts
- type ApplyResourcesOpts
- type Client
- func (client Client) ApplyResource(ctx context.Context, resource *unstructured.Unstructured, opts ApplyOpts) error
- func (client Client) ApplyResources(ctx context.Context, resources []*unstructured.Unstructured, ...) error
- func (client Client) CreateRevision(ctx context.Context, release, ns string, revision internal.Revision, ...) error
- func (client Client) DeleteRevisions(ctx context.Context, revisions internal.Release) error
- func (client Client) EnsureNamespace(ctx context.Context, namespace string) error
- func (client Client) GetDynamicResourceInterface(resource *unstructured.Unstructured) (dynamic.ResourceInterface, error)
- func (client Client) GetInClusterState(ctx context.Context, resource *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func (client Client) GetRelease(ctx context.Context, release, ns string) (*internal.Release, error)
- func (client Client) GetReleases(ctx context.Context) ([]internal.Release, error)
- func (client Client) GetReleasesByNS(ctx context.Context, ns string) ([]internal.Release, error)
- func (client Client) GetRevisionResources(ctx context.Context, revision internal.Revision) ([]*unstructured.Unstructured, error)
- func (client Client) IsReady(ctx context.Context, resource *unstructured.Unstructured) (bool, error)
- func (client *Client) LookupResourceMapping(resource *unstructured.Unstructured) (*meta.RESTMapping, error)
- func (client Client) RemoveOrphans(ctx context.Context, previous, current []*unstructured.Unstructured) ([]*unstructured.Unstructured, error)
- func (client Client) UpdateRevisionActiveState(ctx context.Context, revision internal.Revision) error
- func (client Client) WaitForReady(ctx context.Context, resource *unstructured.Unstructured, opts WaitOptions) error
- func (client Client) WaitForReadyMany(ctx context.Context, resources []*unstructured.Unstructured, opts WaitOptions) error
- type WaitOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyResourcesOpts ¶
type Client ¶
type Client struct { Dynamic *dynamic.DynamicClient Clientset *kubernetes.Clientset Meta metadata.Interface Mapper *restmapper.DeferredDiscoveryRESTMapper }
func NewClientFromKubeConfig ¶
func (Client) ApplyResource ¶
func (client Client) ApplyResource(ctx context.Context, resource *unstructured.Unstructured, opts ApplyOpts) error
func (Client) ApplyResources ¶
func (client Client) ApplyResources(ctx context.Context, resources []*unstructured.Unstructured, opts ApplyResourcesOpts) error
func (Client) CreateRevision ¶
func (client Client) CreateRevision(ctx context.Context, release, ns string, revision internal.Revision, resources []*unstructured.Unstructured) error
func (Client) DeleteRevisions ¶
func (Client) EnsureNamespace ¶
func (Client) GetDynamicResourceInterface ¶
func (client Client) GetDynamicResourceInterface(resource *unstructured.Unstructured) (dynamic.ResourceInterface, error)
func (Client) GetInClusterState ¶
func (client Client) GetInClusterState(ctx context.Context, resource *unstructured.Unstructured) (*unstructured.Unstructured, error)
func (Client) GetRelease ¶ added in v0.6.0
func (Client) GetReleases ¶ added in v0.6.0
func (Client) GetReleasesByNS ¶ added in v0.6.0
func (Client) GetRevisionResources ¶
func (client Client) GetRevisionResources(ctx context.Context, revision internal.Revision) ([]*unstructured.Unstructured, error)
func (Client) IsReady ¶ added in v0.3.0
func (client Client) IsReady(ctx context.Context, resource *unstructured.Unstructured) (bool, error)
func (*Client) LookupResourceMapping ¶
func (client *Client) LookupResourceMapping(resource *unstructured.Unstructured) (*meta.RESTMapping, error)
func (Client) RemoveOrphans ¶
func (client Client) RemoveOrphans(ctx context.Context, previous, current []*unstructured.Unstructured) ([]*unstructured.Unstructured, error)
func (Client) UpdateRevisionActiveState ¶
func (Client) WaitForReady ¶
func (client Client) WaitForReady(ctx context.Context, resource *unstructured.Unstructured, opts WaitOptions) error
func (Client) WaitForReadyMany ¶
func (client Client) WaitForReadyMany(ctx context.Context, resources []*unstructured.Unstructured, opts WaitOptions) error
Click to show internal directories.
Click to hide internal directories.