proto

package
v0.0.0-...-24c7f32 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAdminServiceServer

func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer)

func RegisterConfigDiagsServer

func RegisterConfigDiagsServer(s *grpc.Server, srv ConfigDiagsServer)

Types

type AdminServiceClient

type AdminServiceClient interface {
	// RegisterModel adds the specified YANG model to the list of supported models.
	RegisterModel(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	// UnregisterModel removes the specified YANG model from the list of supported models.
	UnregisterModel(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	// GetNetworkChanges returns a stream of network changes submitted via gNMI.
	GetNetworkChanges(ctx context.Context, in *NetworkChangesRequest, opts ...grpc.CallOption) (AdminService_GetNetworkChangesClient, error)
}

AdminServiceClient is the client API for AdminService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAdminServiceClient

func NewAdminServiceClient(cc *grpc.ClientConn) AdminServiceClient

type AdminServiceServer

type AdminServiceServer interface {
	// RegisterModel adds the specified YANG model to the list of supported models.
	RegisterModel(context.Context, *RegisterRequest) (*RegisterResponse, error)
	// UnregisterModel removes the specified YANG model from the list of supported models.
	UnregisterModel(context.Context, *RegisterRequest) (*RegisterResponse, error)
	// GetNetworkChanges returns a stream of network changes submitted via gNMI.
	GetNetworkChanges(*NetworkChangesRequest, AdminService_GetNetworkChangesServer) error
}

AdminServiceServer is the server API for AdminService service.

type AdminService_GetNetworkChangesClient

type AdminService_GetNetworkChangesClient interface {
	Recv() (*NetChange, error)
	grpc.ClientStream
}

type AdminService_GetNetworkChangesServer

type AdminService_GetNetworkChangesServer interface {
	Send(*NetChange) error
	grpc.ServerStream
}

type Change

type Change struct {
	Time                 *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	Id                   string               `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Desc                 string               `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
	Changevalues         []*ChangeValue       `protobuf:"bytes,4,rep,name=changevalues,proto3" json:"changevalues,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Change is a descriptor of a submitted configuration change targeted at a single device.

func (*Change) Descriptor

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

func (*Change) GetChangevalues

func (m *Change) GetChangevalues() []*ChangeValue

func (*Change) GetDesc

func (m *Change) GetDesc() string

func (*Change) GetId

func (m *Change) GetId() string

func (*Change) GetTime

func (m *Change) GetTime() *timestamp.Timestamp

func (*Change) ProtoMessage

func (*Change) ProtoMessage()

func (*Change) Reset

func (m *Change) Reset()

func (*Change) String

func (m *Change) String() string

func (*Change) XXX_DiscardUnknown

func (m *Change) XXX_DiscardUnknown()

func (*Change) XXX_Marshal

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

func (*Change) XXX_Merge

func (m *Change) XXX_Merge(src proto.Message)

func (*Change) XXX_Size

func (m *Change) XXX_Size() int

func (*Change) XXX_Unmarshal

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

type ChangeValue

type ChangeValue struct {
	Path                 string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Removed              bool     `protobuf:"varint,3,opt,name=removed,proto3" json:"removed,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ChangeValue is an individual Path/Value combination in a Change

func (*ChangeValue) Descriptor

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

func (*ChangeValue) GetPath

func (m *ChangeValue) GetPath() string

func (*ChangeValue) GetRemoved

func (m *ChangeValue) GetRemoved() bool

func (*ChangeValue) GetValue

func (m *ChangeValue) GetValue() string

func (*ChangeValue) ProtoMessage

func (*ChangeValue) ProtoMessage()

func (*ChangeValue) Reset

func (m *ChangeValue) Reset()

func (*ChangeValue) String

func (m *ChangeValue) String() string

func (*ChangeValue) XXX_DiscardUnknown

func (m *ChangeValue) XXX_DiscardUnknown()

func (*ChangeValue) XXX_Marshal

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

func (*ChangeValue) XXX_Merge

func (m *ChangeValue) XXX_Merge(src proto.Message)

func (*ChangeValue) XXX_Size

func (m *ChangeValue) XXX_Size() int

func (*ChangeValue) XXX_Unmarshal

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

type ChangesRequest

type ChangesRequest struct {
	ChangeIds            []string `protobuf:"bytes,1,rep,name=changeIds,proto3" json:"changeIds,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ChangesRequest is a message for specifying GetChanges query parameters.

func (*ChangesRequest) Descriptor

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

func (*ChangesRequest) GetChangeIds

func (m *ChangesRequest) GetChangeIds() []string

func (*ChangesRequest) ProtoMessage

func (*ChangesRequest) ProtoMessage()

func (*ChangesRequest) Reset

func (m *ChangesRequest) Reset()

func (*ChangesRequest) String

func (m *ChangesRequest) String() string

func (*ChangesRequest) XXX_DiscardUnknown

func (m *ChangesRequest) XXX_DiscardUnknown()

func (*ChangesRequest) XXX_Marshal

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

func (*ChangesRequest) XXX_Merge

func (m *ChangesRequest) XXX_Merge(src proto.Message)

func (*ChangesRequest) XXX_Size

func (m *ChangesRequest) XXX_Size() int

func (*ChangesRequest) XXX_Unmarshal

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

type ConfigChange

type ConfigChange struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Hash                 string   `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ConfigChange is a descriptor of a submitted configuration change targeted as a single device.

func (*ConfigChange) Descriptor

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

func (*ConfigChange) GetHash

func (m *ConfigChange) GetHash() string

func (*ConfigChange) GetId

func (m *ConfigChange) GetId() string

func (*ConfigChange) ProtoMessage

func (*ConfigChange) ProtoMessage()

func (*ConfigChange) Reset

func (m *ConfigChange) Reset()

func (*ConfigChange) String

func (m *ConfigChange) String() string

func (*ConfigChange) XXX_DiscardUnknown

func (m *ConfigChange) XXX_DiscardUnknown()

func (*ConfigChange) XXX_Marshal

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

func (*ConfigChange) XXX_Merge

func (m *ConfigChange) XXX_Merge(src proto.Message)

func (*ConfigChange) XXX_Size

func (m *ConfigChange) XXX_Size() int

func (*ConfigChange) XXX_Unmarshal

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

type ConfigDiagsClient

type ConfigDiagsClient interface {
	// GetChanges returns a stream of submitted changes objects.
	GetChanges(ctx context.Context, in *ChangesRequest, opts ...grpc.CallOption) (ConfigDiags_GetChangesClient, error)
	// GetConfigurations returns a stream of submitted configurations aimed at individual devices.
	GetConfigurations(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (ConfigDiags_GetConfigurationsClient, error)
}

ConfigDiagsClient is the client API for ConfigDiags service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewConfigDiagsClient

func NewConfigDiagsClient(cc *grpc.ClientConn) ConfigDiagsClient

type ConfigDiagsServer

type ConfigDiagsServer interface {
	// GetChanges returns a stream of submitted changes objects.
	GetChanges(*ChangesRequest, ConfigDiags_GetChangesServer) error
	// GetConfigurations returns a stream of submitted configurations aimed at individual devices.
	GetConfigurations(*ConfigRequest, ConfigDiags_GetConfigurationsServer) error
}

ConfigDiagsServer is the server API for ConfigDiags service.

type ConfigDiags_GetChangesClient

type ConfigDiags_GetChangesClient interface {
	Recv() (*Change, error)
	grpc.ClientStream
}

type ConfigDiags_GetChangesServer

type ConfigDiags_GetChangesServer interface {
	Send(*Change) error
	grpc.ServerStream
}

type ConfigDiags_GetConfigurationsClient

type ConfigDiags_GetConfigurationsClient interface {
	Recv() (*Configuration, error)
	grpc.ClientStream
}

type ConfigDiags_GetConfigurationsServer

type ConfigDiags_GetConfigurationsServer interface {
	Send(*Configuration) error
	grpc.ServerStream
}

type ConfigRequest

type ConfigRequest struct {
	DeviceIds            []string `protobuf:"bytes,1,rep,name=deviceIds,proto3" json:"deviceIds,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ConfigRequest is a message for specifying GetConfigurations query parameters.

func (*ConfigRequest) Descriptor

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

func (*ConfigRequest) GetDeviceIds

func (m *ConfigRequest) GetDeviceIds() []string

func (*ConfigRequest) ProtoMessage

func (*ConfigRequest) ProtoMessage()

func (*ConfigRequest) Reset

func (m *ConfigRequest) Reset()

func (*ConfigRequest) String

func (m *ConfigRequest) String() string

func (*ConfigRequest) XXX_DiscardUnknown

func (m *ConfigRequest) XXX_DiscardUnknown()

func (*ConfigRequest) XXX_Marshal

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

func (*ConfigRequest) XXX_Merge

func (m *ConfigRequest) XXX_Merge(src proto.Message)

func (*ConfigRequest) XXX_Size

func (m *ConfigRequest) XXX_Size() int

func (*ConfigRequest) XXX_Unmarshal

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

type Configuration

type Configuration struct {
	Name                 string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Deviceid             string               `protobuf:"bytes,2,opt,name=deviceid,proto3" json:"deviceid,omitempty"`
	Created              *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"`
	Updated              *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updated,proto3" json:"updated,omitempty"`
	User                 string               `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"`
	Desc                 string               `protobuf:"bytes,6,opt,name=desc,proto3" json:"desc,omitempty"`
	ChangeIDs            []string             `protobuf:"bytes,7,rep,name=changeIDs,proto3" json:"changeIDs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Change is a descriptor of a submitted configuration change targeted at a single device.

func (*Configuration) Descriptor

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

func (*Configuration) GetChangeIDs

func (m *Configuration) GetChangeIDs() []string

func (*Configuration) GetCreated

func (m *Configuration) GetCreated() *timestamp.Timestamp

func (*Configuration) GetDesc

func (m *Configuration) GetDesc() string

func (*Configuration) GetDeviceid

func (m *Configuration) GetDeviceid() string

func (*Configuration) GetName

func (m *Configuration) GetName() string

func (*Configuration) GetUpdated

func (m *Configuration) GetUpdated() *timestamp.Timestamp

func (*Configuration) GetUser

func (m *Configuration) GetUser() string

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) Reset

func (m *Configuration) Reset()

func (*Configuration) String

func (m *Configuration) String() string

func (*Configuration) XXX_DiscardUnknown

func (m *Configuration) XXX_DiscardUnknown()

func (*Configuration) XXX_Marshal

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

func (*Configuration) XXX_Merge

func (m *Configuration) XXX_Merge(src proto.Message)

func (*Configuration) XXX_Size

func (m *Configuration) XXX_Size() int

func (*Configuration) XXX_Unmarshal

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

type NetChange

type NetChange struct {
	Time                 *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	Name                 string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	User                 string               `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	Changes              []*ConfigChange      `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

NetChange is a descriptor of a configuration change submitted via gNMI.

func (*NetChange) Descriptor

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

func (*NetChange) GetChanges

func (m *NetChange) GetChanges() []*ConfigChange

func (*NetChange) GetName

func (m *NetChange) GetName() string

func (*NetChange) GetTime

func (m *NetChange) GetTime() *timestamp.Timestamp

func (*NetChange) GetUser

func (m *NetChange) GetUser() string

func (*NetChange) ProtoMessage

func (*NetChange) ProtoMessage()

func (*NetChange) Reset

func (m *NetChange) Reset()

func (*NetChange) String

func (m *NetChange) String() string

func (*NetChange) XXX_DiscardUnknown

func (m *NetChange) XXX_DiscardUnknown()

func (*NetChange) XXX_Marshal

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

func (*NetChange) XXX_Merge

func (m *NetChange) XXX_Merge(src proto.Message)

func (*NetChange) XXX_Size

func (m *NetChange) XXX_Size() int

func (*NetChange) XXX_Unmarshal

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

type NetworkChangesRequest

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

NetworkChangesRequest is a message for specifying GetNetworkChanges query parameters.

func (*NetworkChangesRequest) Descriptor

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

func (*NetworkChangesRequest) ProtoMessage

func (*NetworkChangesRequest) ProtoMessage()

func (*NetworkChangesRequest) Reset

func (m *NetworkChangesRequest) Reset()

func (*NetworkChangesRequest) String

func (m *NetworkChangesRequest) String() string

func (*NetworkChangesRequest) XXX_DiscardUnknown

func (m *NetworkChangesRequest) XXX_DiscardUnknown()

func (*NetworkChangesRequest) XXX_Marshal

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

func (*NetworkChangesRequest) XXX_Merge

func (m *NetworkChangesRequest) XXX_Merge(src proto.Message)

func (*NetworkChangesRequest) XXX_Size

func (m *NetworkChangesRequest) XXX_Size() int

func (*NetworkChangesRequest) XXX_Unmarshal

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

type RegisterRequest

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

RegisterRequest carries data for registering or unregistering a YANG model.

func (*RegisterRequest) Descriptor

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

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) Reset

func (m *RegisterRequest) Reset()

func (*RegisterRequest) String

func (m *RegisterRequest) String() string

func (*RegisterRequest) XXX_DiscardUnknown

func (m *RegisterRequest) XXX_DiscardUnknown()

func (*RegisterRequest) XXX_Marshal

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

func (*RegisterRequest) XXX_Merge

func (m *RegisterRequest) XXX_Merge(src proto.Message)

func (*RegisterRequest) XXX_Size

func (m *RegisterRequest) XXX_Size() int

func (*RegisterRequest) XXX_Unmarshal

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

type RegisterResponse

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

RegisterResponse carries status of YANG model registeration or unregistration.

func (*RegisterResponse) Descriptor

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

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) Reset

func (m *RegisterResponse) Reset()

func (*RegisterResponse) String

func (m *RegisterResponse) String() string

func (*RegisterResponse) XXX_DiscardUnknown

func (m *RegisterResponse) XXX_DiscardUnknown()

func (*RegisterResponse) XXX_Marshal

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

func (*RegisterResponse) XXX_Merge

func (m *RegisterResponse) XXX_Merge(src proto.Message)

func (*RegisterResponse) XXX_Size

func (m *RegisterResponse) XXX_Size() int

func (*RegisterResponse) XXX_Unmarshal

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

type UnimplementedAdminServiceServer

type UnimplementedAdminServiceServer struct {
}

UnimplementedAdminServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAdminServiceServer) GetNetworkChanges

func (*UnimplementedAdminServiceServer) RegisterModel

func (*UnimplementedAdminServiceServer) UnregisterModel

type UnimplementedConfigDiagsServer

type UnimplementedConfigDiagsServer struct {
}

UnimplementedConfigDiagsServer can be embedded to have forward compatible implementations.

func (*UnimplementedConfigDiagsServer) GetChanges

func (*UnimplementedConfigDiagsServer) GetConfigurations

Jump to

Keyboard shortcuts

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