kubernetes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Types

type AddOperation

type AddOperation struct {
	Path  string      `json:"path"`
	Value interface{} `json:"value"`
	Op    string      `json:"op"`
}

func (*AddOperation) GetPath

func (o *AddOperation) GetPath() string

func (*AddOperation) MarshalJSON

func (o *AddOperation) MarshalJSON() ([]byte, error)

func (*AddOperation) String

func (o *AddOperation) String() string

type KubeProvider

type KubeProvider func() (*kubernetes.Clientset, restclient.Config)

KubeProvider func to return client and config to work with K8s API

type PatchOperation

type PatchOperation interface {
	MarshalJSON() ([]byte, error)
	GetPath() string
}

type PatchOperations

type PatchOperations []PatchOperation

func (PatchOperations) Equal

func (po PatchOperations) Equal(ops []PatchOperation) bool

func (PatchOperations) MarshalJSON

func (po PatchOperations) MarshalJSON() ([]byte, error)

type RemoveOperation

type RemoveOperation struct {
	Path string `json:"path"`
	Op   string `json:"op"`
}

func (*RemoveOperation) GetPath

func (o *RemoveOperation) GetPath() string

func (*RemoveOperation) MarshalJSON

func (o *RemoveOperation) MarshalJSON() ([]byte, error)

func (*RemoveOperation) String

func (o *RemoveOperation) String() string

type ReplaceOperation

type ReplaceOperation struct {
	Path  string      `json:"path"`
	Value interface{} `json:"value"`
	Op    string      `json:"op"`
}

func (*ReplaceOperation) GetPath

func (o *ReplaceOperation) GetPath() string

func (*ReplaceOperation) MarshalJSON

func (o *ReplaceOperation) MarshalJSON() ([]byte, error)

func (*ReplaceOperation) String

func (o *ReplaceOperation) String() string

Jump to

Keyboard shortcuts

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