Documentation ¶
Overview ¶
Package vsphere holds utilities for bootstrapping a vSphere API client from the metadata injected by the VSphereSource. Within a receive adapter, users can write:
client, err := vsphere.New(ctx)
This is modeled after the Bindings pattern.
Index ¶
- Constants
- func Address(ctx context.Context) (string, error)
- func New(ctx context.Context) (*govmomi.Client, error)
- func NewAdapter(ctx context.Context, processed adapter.EnvConfigAccessor, ...) adapter.Adapter
- func NewEnvConfig() adapter.EnvConfigAccessor
- func NewREST(ctx context.Context) (*rest.Client, error)
- func ReadKey(key string) (string, error)
- type EnvConfig
Constants ¶
View Source
const ( VolumeName = "vsphere-binding" MountPath = "/var/bindings/vsphere" // filepath.Join isn't const. )
Variables ¶
This section is empty.
Functions ¶
func NewAdapter ¶
func NewAdapter(ctx context.Context, processed adapter.EnvConfigAccessor, ceClient cloudevents.Client) adapter.Adapter
func NewEnvConfig ¶
func NewEnvConfig() adapter.EnvConfigAccessor
Types ¶
Click to show internal directories.
Click to hide internal directories.