tensorflow_serving

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemStoragePathSourceConfig

type FileSystemStoragePathSourceConfig struct {
	// The servables to monitor for new versions, and aspire.
	Servables []*FileSystemStoragePathSourceConfig_ServableToMonitor `protobuf:"bytes,5,rep,name=servables,proto3" json:"servables,omitempty"`
	// A single servable name/base_path pair to monitor.
	// DEPRECATED: Use 'servables' instead.
	// TODO(b/30898016): Stop using these fields, and ultimately remove them here.
	ServableName string `protobuf:"bytes,1,opt,name=servable_name,json=servableName,proto3" json:"servable_name,omitempty"` // Deprecated: Do not use.
	BasePath     string `protobuf:"bytes,2,opt,name=base_path,json=basePath,proto3" json:"base_path,omitempty"`             // Deprecated: Do not use.
	// How long to wait between file-system polling to look for children of
	// 'base_path', in seconds.
	//
	// If set to zero, filesystem will be polled exactly once. If set to a
	// negative value (for testing use only), polling will be entirely disabled.
	FileSystemPollWaitSeconds int64 `` /* 143-byte string literal not displayed */
	// If true, then FileSystemStoragePathSource::Create() and ::UpdateConfig()
	// fail if, for any configured servables, the file system doesn't currently
	// contain at least one version under the base path.
	// (Otherwise, it will emit a warning and keep pinging the file system to
	// check for a version to appear later.)
	// DEPRECATED: Use 'servable_versions_always_present' instead, which includes
	// this behavior.
	// TODO(b/30898016): Remove 2019-10-31 or later.
	FailIfZeroVersionsAtStartup bool `` // Deprecated: Do not use.
	/* 151-byte string literal not displayed */
	// If true, the servable is always expected to exist on the underlying
	// filesystem. FileSystemStoragePathSource::Create() and ::UpdateConfig() will
	// fail if, for any configured servables, the file system doesn't currently
	// contain at least one version under the base path. In addition, if a polling
	// loop find the base path empty, it will not unload existing servables.
	ServableVersionsAlwaysPresent bool     `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral          struct{} `json:"-"`
	XXX_unrecognized              []byte   `json:"-"`
	XXX_sizecache                 int32    `json:"-"`
}

Config proto for FileSystemStoragePathSource.

func (*FileSystemStoragePathSourceConfig) Descriptor

func (*FileSystemStoragePathSourceConfig) Descriptor() ([]byte, []int)

func (*FileSystemStoragePathSourceConfig) GetBasePath deprecated

func (m *FileSystemStoragePathSourceConfig) GetBasePath() string

Deprecated: Do not use.

func (*FileSystemStoragePathSourceConfig) GetFailIfZeroVersionsAtStartup deprecated

func (m *FileSystemStoragePathSourceConfig) GetFailIfZeroVersionsAtStartup() bool

Deprecated: Do not use.

func (*FileSystemStoragePathSourceConfig) GetFileSystemPollWaitSeconds

func (m *FileSystemStoragePathSourceConfig) GetFileSystemPollWaitSeconds() int64

func (*FileSystemStoragePathSourceConfig) GetServableName deprecated

func (m *FileSystemStoragePathSourceConfig) GetServableName() string

Deprecated: Do not use.

func (*FileSystemStoragePathSourceConfig) GetServableVersionsAlwaysPresent

func (m *FileSystemStoragePathSourceConfig) GetServableVersionsAlwaysPresent() bool

func (*FileSystemStoragePathSourceConfig) GetServables

func (*FileSystemStoragePathSourceConfig) ProtoMessage

func (*FileSystemStoragePathSourceConfig) ProtoMessage()

func (*FileSystemStoragePathSourceConfig) Reset

func (*FileSystemStoragePathSourceConfig) String

func (*FileSystemStoragePathSourceConfig) XXX_DiscardUnknown

func (m *FileSystemStoragePathSourceConfig) XXX_DiscardUnknown()

func (*FileSystemStoragePathSourceConfig) XXX_Marshal

func (m *FileSystemStoragePathSourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileSystemStoragePathSourceConfig) XXX_Merge

func (*FileSystemStoragePathSourceConfig) XXX_Size

func (m *FileSystemStoragePathSourceConfig) XXX_Size() int

func (*FileSystemStoragePathSourceConfig) XXX_Unmarshal

func (m *FileSystemStoragePathSourceConfig) XXX_Unmarshal(b []byte) error

type FileSystemStoragePathSourceConfig_ServableToMonitor

type FileSystemStoragePathSourceConfig_ServableToMonitor struct {
	// The servable name to supply in aspired-versions callback calls. Child
	// paths of 'base_path' are considered to be versions of this servable.
	ServableName string `protobuf:"bytes,1,opt,name=servable_name,json=servableName,proto3" json:"servable_name,omitempty"`
	// The path to monitor, i.e. look for child paths of the form base_path/123.
	BasePath string `protobuf:"bytes,2,opt,name=base_path,json=basePath,proto3" json:"base_path,omitempty"`
	// The policy to determines the number of versions of the servable to be
	// served at the same time.
	ServableVersionPolicy *FileSystemStoragePathSourceConfig_ServableVersionPolicy `` /* 126-byte string literal not displayed */
	XXX_NoUnkeyedLiteral  struct{}                                                 `json:"-"`
	XXX_unrecognized      []byte                                                   `json:"-"`
	XXX_sizecache         int32                                                    `json:"-"`
}

A servable name and base path to look for versions of the servable.

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) Descriptor

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) GetBasePath

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) GetServableName

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) GetServableVersionPolicy

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) ProtoMessage

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) Reset

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) String

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) XXX_DiscardUnknown

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) XXX_Marshal

func (m *FileSystemStoragePathSourceConfig_ServableToMonitor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) XXX_Merge

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) XXX_Size

func (*FileSystemStoragePathSourceConfig_ServableToMonitor) XXX_Unmarshal

type FileSystemStoragePathSourceConfig_ServableVersionPolicy

type FileSystemStoragePathSourceConfig_ServableVersionPolicy struct {
	// Types that are valid to be assigned to PolicyChoice:
	//	*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest_
	//	*FileSystemStoragePathSourceConfig_ServableVersionPolicy_All_
	//	*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific_
	PolicyChoice         isFileSystemStoragePathSourceConfig_ServableVersionPolicy_PolicyChoice `protobuf_oneof:"policy_choice"`
	XXX_NoUnkeyedLiteral struct{}                                                               `json:"-"`
	XXX_unrecognized     []byte                                                                 `json:"-"`
	XXX_sizecache        int32                                                                  `json:"-"`
}

A policy that dictates which version(s) of a servable should be served.

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) Descriptor

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) GetAll

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) GetLatest

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) GetPolicyChoice

func (m *FileSystemStoragePathSourceConfig_ServableVersionPolicy) GetPolicyChoice() isFileSystemStoragePathSourceConfig_ServableVersionPolicy_PolicyChoice

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) GetSpecific

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) ProtoMessage

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) Reset

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) String

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) XXX_DiscardUnknown

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) XXX_Marshal

func (m *FileSystemStoragePathSourceConfig_ServableVersionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) XXX_Merge

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) XXX_OneofWrappers

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) XXX_Size

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy) XXX_Unmarshal

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_All

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_All struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Serve all versions found on disk.

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_All) Descriptor

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_All) ProtoMessage

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_All) Reset

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_All) String

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_All) XXX_DiscardUnknown

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_All) XXX_Marshal

func (m *FileSystemStoragePathSourceConfig_ServableVersionPolicy_All) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_All) XXX_Merge

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_All) XXX_Size

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_All) XXX_Unmarshal

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_All_

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_All_ struct {
	All *FileSystemStoragePathSourceConfig_ServableVersionPolicy_All `protobuf:"bytes,101,opt,name=all,proto3,oneof"`
}

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest struct {
	// Number of latest versions to serve. (The default is 1.)
	NumVersions          uint32   `protobuf:"varint,1,opt,name=num_versions,json=numVersions,proto3" json:"num_versions,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Serve the latest versions (i.e. the ones with the highest version numbers), among those found on disk.

This is the default policy, with the default number of versions as 1.

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest) Descriptor

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest) GetNumVersions

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest) ProtoMessage

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest) Reset

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest) String

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest) XXX_DiscardUnknown

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest) XXX_Marshal

func (m *FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest) XXX_Merge

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest) XXX_Size

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest) XXX_Unmarshal

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest_

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest_ struct {
	Latest *FileSystemStoragePathSourceConfig_ServableVersionPolicy_Latest `protobuf:"bytes,100,opt,name=latest,proto3,oneof"`
}

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific struct {
	// The version numbers to serve.
	Versions             []int64  `protobuf:"varint,1,rep,packed,name=versions,proto3" json:"versions,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Serve a specific version (or set of versions).

This policy is useful for rolling back to a specific version, or for canarying a specific version while still serving a separate stable version.

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific) Descriptor

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific) GetVersions

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific) ProtoMessage

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific) Reset

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific) String

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific) XXX_DiscardUnknown

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific) XXX_Marshal

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific) XXX_Merge

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific) XXX_Size

func (*FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific) XXX_Unmarshal

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific_

type FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific_ struct {
	Specific *FileSystemStoragePathSourceConfig_ServableVersionPolicy_Specific `protobuf:"bytes,102,opt,name=specific,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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