Documentation ¶
Index ¶
- Variables
- func DynamicClientFromContext(ctx context.Context) dynamic.Interface
- func NewContextWithApiConfig(ctx context.Context, apiConfig KubernetesApiConfig) context.Context
- func NewContextWithDynamicClient(ctx context.Context, client dynamic.Interface) context.Context
- func NewContextWithDynamicFakeRestMapper(ctx context.Context) context.Context
- func NewContextWithRestConfig(ctx context.Context, config *rest.Config) context.Context
- func NewContextWithRestMapper(ctx context.Context, config meta.RESTMapper) context.Context
- func RestConfigFromContext(ctx context.Context) *rest.Config
- func RestMapperFromContext(ctx context.Context) meta.RESTMapper
- type KubernetesApiConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var NoKubernetesConfigFile = errors.New("NoKubernetesConfigFile")
NoKubernetesConfig is the error returned by GetKubernetesAPI when no Kubernetes Config file was found or the file does not exist.
Functions ¶
func NewContextWithApiConfig ¶
func NewContextWithApiConfig(ctx context.Context, apiConfig KubernetesApiConfig) context.Context
func RestMapperFromContext ¶
func RestMapperFromContext(ctx context.Context) meta.RESTMapper
Types ¶
type KubernetesApiConfig ¶
type KubernetesApiConfig interface {
KubernetesConfigFilePath() *string
}
Click to show internal directories.
Click to hide internal directories.