provision

package
v2.55.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Overview

Package provision contains utilities for obtaining runtime provision, information -- such as pipeline options.

Deprecated: Use github.com/apache/beam/sdks/v2/go/container/tools package instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Info deprecated

func Info(ctx context.Context, endpoint string) (*fnpb.ProvisionInfo, error)

Info returns the runtime provisioning info for the worker.

Deprecated: Use github.com/apache/beam/sdks/v2/go/container/tools instead.

func JSONToProto deprecated

func JSONToProto(data string) (*google_pb.Struct, error)

JSONToProto converts JSON-encoded pipeline options to a proto struct.

Deprecated: Use github.com/apache/beam/sdks/v2/go/container/tools.JSONToProto instead.

func OptionsToProto deprecated

func OptionsToProto(v any) (*google_pb.Struct, error)

OptionsToProto converts pipeline options to a proto struct via JSON.

Deprecated: Use github.com/apache/beam/sdks/v2/go/container/tools.OptionsToProto instead.

func ProtoToJSON deprecated

func ProtoToJSON(opt *google_pb.Struct) (string, error)

ProtoToJSON converts pipeline options from a proto struct to JSON.

Deprecated: Use github.com/apache/beam/sdks/v2/go/container/tools.ProtoToJSON instead.

func ProtoToOptions deprecated

func ProtoToOptions(opt *google_pb.Struct, v any) error

ProtoToOptions converts pipeline options from a proto struct via JSON.

Deprecated: Use github.com/apache/beam/sdks/v2/go/container/tools.ProtoToOptions instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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