Documentation ¶
Overview ¶
package core contains a high level client for interacting with knative primitives used to realise, amongst other things, riff functions. The client typically returns structs for kubernetes resources, as they would have been written "by hand" to be applied by kubectl. It is not the role of the client to deal with printing, formatting or command line parsing.
Index ¶
- func ParseEnvVar(envVars []string) ([]v1.EnvVar, error)
- func ParseEnvVarSource(envVarsFrom []string) ([]v1.EnvVar, error)
- type Builder
- type Client
- type CreateChannelOptions
- type CreateFunctionOptions
- type CreateOrUpdateServiceOptions
- type CreateSubscriptionOptions
- type DeleteChannelOptions
- type DeleteServiceOptions
- type DeleteSubscriptionOptions
- type KubectlClient
- type ListChannelOptions
- type ListServiceOptions
- type ListSubscriptionsOptions
- type Manifest
- type NamespaceInitOptions
- type ServiceInvokeOptions
- type ServiceStatusOptions
- type SystemInstallOptions
- type SystemUninstallOptions
- type UpdateFunctionOptions
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { CreateFunction(options CreateFunctionOptions, log io.Writer) (*serving.Service, error) UpdateFunction(options UpdateFunctionOptions, log io.Writer) error CreateSubscription(options CreateSubscriptionOptions) (*eventing.Subscription, error) DeleteSubscription(options DeleteSubscriptionOptions) error ListSubscriptions(options ListSubscriptionsOptions) (*eventing.SubscriptionList, error) ListChannels(options ListChannelOptions) (*eventing.ChannelList, error) CreateChannel(options CreateChannelOptions) (*eventing.Channel, error) DeleteChannel(options DeleteChannelOptions) error ListServices(options ListServiceOptions) (*serving.ServiceList, error) CreateService(options CreateOrUpdateServiceOptions) (*serving.Service, error) UpdateService(options CreateOrUpdateServiceOptions) (*serving.Service, error) DeleteService(options DeleteServiceOptions) error ServiceStatus(options ServiceStatusOptions) (*v1alpha1.ServiceCondition, error) ServiceCoordinates(options ServiceInvokeOptions) (ingressIP string, hostName string, err error) }
func NewClient ¶
func NewClient(clientConfig clientcmd.ClientConfig, kubeClient kubernetes.Interface, eventing eventing_cs.Interface, serving serving_cs.Interface, builder Builder) Client
type CreateChannelOptions ¶
type CreateFunctionOptions ¶
type CreateOrUpdateServiceOptions ¶ added in v0.2.0
type DeleteChannelOptions ¶
type DeleteServiceOptions ¶
type DeleteSubscriptionOptions ¶ added in v0.1.3
type KubectlClient ¶
type KubectlClient interface { SystemInstall(manifests map[string]*Manifest, options SystemInstallOptions) (bool, error) SystemUninstall(options SystemUninstallOptions) (bool, error) NamespaceInit(manifests map[string]*Manifest, options NamespaceInitOptions) error }
func NewKubectlClient ¶
func NewKubectlClient(kubeClient kubernetes.Interface) KubectlClient
type ListChannelOptions ¶
type ListChannelOptions struct {
Namespace string
}
type ListServiceOptions ¶
type ListServiceOptions struct {
Namespace string
}
type ListSubscriptionsOptions ¶ added in v0.1.3
type ListSubscriptionsOptions struct {
Namespace string
}
type Manifest ¶ added in v0.1.2
type Manifest struct { ManifestVersion string `json:"manifestVersion"` Istio []string `json:"istio"` Knative []string `json:"knative"` Namespace []string `json:"namespace"` }
Manifest defines the location of YAML files for system components.
func NewManifest ¶ added in v0.1.2
func ResolveManifest ¶ added in v0.2.0
type NamespaceInitOptions ¶
type ServiceInvokeOptions ¶
type ServiceStatusOptions ¶
type SystemInstallOptions ¶
type SystemUninstallOptions ¶ added in v0.1.1
type UpdateFunctionOptions ¶ added in v0.2.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.