autoupdate

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package autoupdate provides the AutoupdateService

Index

Constants

This section is empty.

Variables

View Source
var File_nebraska_service_proto protoreflect.FileDescriptor
View Source
var File_rollback_service_proto protoreflect.FileDescriptor
View Source
var File_update_service_proto protoreflect.FileDescriptor

Functions

func RegisterNebraskaServiceServer

func RegisterNebraskaServiceServer(s *grpc.Server, srv NebraskaServiceServer)

func RegisterRollbackServiceServer

func RegisterRollbackServiceServer(s *grpc.Server, srv RollbackServiceServer)

func RegisterUpdateServiceServer

func RegisterUpdateServiceServer(s *grpc.Server, srv UpdateServiceServer)

Types

type CreateTempDirResponse

type CreateTempDirResponse struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTempDirResponse) Descriptor deprecated

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

Deprecated: Use CreateTempDirResponse.ProtoReflect.Descriptor instead.

func (*CreateTempDirResponse) GetPath

func (x *CreateTempDirResponse) GetPath() string

func (*CreateTempDirResponse) ProtoMessage

func (*CreateTempDirResponse) ProtoMessage()

func (*CreateTempDirResponse) ProtoReflect

func (x *CreateTempDirResponse) ProtoReflect() protoreflect.Message

func (*CreateTempDirResponse) Reset

func (x *CreateTempDirResponse) Reset()

func (*CreateTempDirResponse) String

func (x *CreateTempDirResponse) String() string

type LSBRelease

type LSBRelease struct {
	ContentJson []byte `protobuf:"bytes,1,opt,name=content_json,json=contentJson,proto3" json:"content_json,omitempty"`
	// contains filtered or unexported fields
}

func (*LSBRelease) Descriptor deprecated

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

Deprecated: Use LSBRelease.ProtoReflect.Descriptor instead.

func (*LSBRelease) GetContentJson

func (x *LSBRelease) GetContentJson() []byte

func (*LSBRelease) ProtoMessage

func (*LSBRelease) ProtoMessage()

func (*LSBRelease) ProtoReflect

func (x *LSBRelease) ProtoReflect() protoreflect.Message

func (*LSBRelease) Reset

func (x *LSBRelease) Reset()

func (*LSBRelease) String

func (x *LSBRelease) String() string

type NebraskaServiceClient

type NebraskaServiceClient interface {
	Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
	Stop(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	CreateTempDir(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*CreateTempDirResponse, error)
	RemoveTempDir(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}

NebraskaServiceClient is the client API for NebraskaService service.

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

type NebraskaServiceServer

type NebraskaServiceServer interface {
	Start(context.Context, *StartRequest) (*StartResponse, error)
	Stop(context.Context, *empty.Empty) (*empty.Empty, error)
	CreateTempDir(context.Context, *empty.Empty) (*CreateTempDirResponse, error)
	RemoveTempDir(context.Context, *empty.Empty) (*empty.Empty, error)
}

NebraskaServiceServer is the server API for NebraskaService service.

type NetworkInformation

type NetworkInformation struct {
	Guid string `protobuf:"bytes,1,opt,name=guid,proto3" json:"guid,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkInformation) Descriptor deprecated

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

Deprecated: Use NetworkInformation.ProtoReflect.Descriptor instead.

func (*NetworkInformation) GetGuid

func (x *NetworkInformation) GetGuid() string

func (*NetworkInformation) ProtoMessage

func (*NetworkInformation) ProtoMessage()

func (*NetworkInformation) ProtoReflect

func (x *NetworkInformation) ProtoReflect() protoreflect.Message

func (*NetworkInformation) Reset

func (x *NetworkInformation) Reset()

func (*NetworkInformation) String

func (x *NetworkInformation) String() string

type Payload

type Payload struct {
	Address        string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	MetadataFolder string `protobuf:"bytes,2,opt,name=metadata_folder,json=metadataFolder,proto3" json:"metadata_folder,omitempty"`
	// contains filtered or unexported fields
}

func (*Payload) Descriptor deprecated

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

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetAddress

func (x *Payload) GetAddress() string

func (*Payload) GetMetadataFolder

func (x *Payload) GetMetadataFolder() string

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

func (x *Payload) ProtoReflect() protoreflect.Message

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) String

func (x *Payload) String() string

type RollbackServiceClient

type RollbackServiceClient interface {
	// Deprecated: Do not use.
	// SetUpPskNetwork is deprecated and replaced by SetUpNetworks.
	SetUpPskNetwork(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SetUpPskResponse, error)
	// SetUpNetworks sets various networks supported by rollback automatically.
	SetUpNetworks(ctx context.Context, in *SetUpNetworksRequest, opts ...grpc.CallOption) (*SetUpNetworksResponse, error)
	// VerifyRollback verifies that oobe ends up on the enrollment screen after
	// rollback and that the networks provided still exists.
	VerifyRollback(ctx context.Context, in *VerifyRollbackRequest, opts ...grpc.CallOption) (*VerifyRollbackResponse, error)
}

RollbackServiceClient is the client API for RollbackService service.

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

type RollbackServiceServer

type RollbackServiceServer interface {
	// Deprecated: Do not use.
	// SetUpPskNetwork is deprecated and replaced by SetUpNetworks.
	SetUpPskNetwork(context.Context, *empty.Empty) (*SetUpPskResponse, error)
	// SetUpNetworks sets various networks supported by rollback automatically.
	SetUpNetworks(context.Context, *SetUpNetworksRequest) (*SetUpNetworksResponse, error)
	// VerifyRollback verifies that oobe ends up on the enrollment screen after
	// rollback and that the networks provided still exists.
	VerifyRollback(context.Context, *VerifyRollbackRequest) (*VerifyRollbackResponse, error)
}

RollbackServiceServer is the server API for RollbackService service.

type SetUpNetworksRequest

type SetUpNetworksRequest struct {
	// contains filtered or unexported fields
}

func (*SetUpNetworksRequest) Descriptor deprecated

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

Deprecated: Use SetUpNetworksRequest.ProtoReflect.Descriptor instead.

func (*SetUpNetworksRequest) ProtoMessage

func (*SetUpNetworksRequest) ProtoMessage()

func (*SetUpNetworksRequest) ProtoReflect

func (x *SetUpNetworksRequest) ProtoReflect() protoreflect.Message

func (*SetUpNetworksRequest) Reset

func (x *SetUpNetworksRequest) Reset()

func (*SetUpNetworksRequest) String

func (x *SetUpNetworksRequest) String() string

type SetUpNetworksResponse

type SetUpNetworksResponse struct {
	Networks []*NetworkInformation `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"`
	// contains filtered or unexported fields
}

func (*SetUpNetworksResponse) Descriptor deprecated

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

Deprecated: Use SetUpNetworksResponse.ProtoReflect.Descriptor instead.

func (*SetUpNetworksResponse) GetNetworks

func (x *SetUpNetworksResponse) GetNetworks() []*NetworkInformation

func (*SetUpNetworksResponse) ProtoMessage

func (*SetUpNetworksResponse) ProtoMessage()

func (*SetUpNetworksResponse) ProtoReflect

func (x *SetUpNetworksResponse) ProtoReflect() protoreflect.Message

func (*SetUpNetworksResponse) Reset

func (x *SetUpNetworksResponse) Reset()

func (*SetUpNetworksResponse) String

func (x *SetUpNetworksResponse) String() string

type SetUpPskResponse deprecated

type SetUpPskResponse struct {
	Guid string `protobuf:"bytes,1,opt,name=guid,proto3" json:"guid,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Do not use.

func (*SetUpPskResponse) Descriptor deprecated

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

Deprecated: Use SetUpPskResponse.ProtoReflect.Descriptor instead.

func (*SetUpPskResponse) GetGuid

func (x *SetUpPskResponse) GetGuid() string

func (*SetUpPskResponse) ProtoMessage

func (*SetUpPskResponse) ProtoMessage()

func (*SetUpPskResponse) ProtoReflect

func (x *SetUpPskResponse) ProtoReflect() protoreflect.Message

func (*SetUpPskResponse) Reset

func (x *SetUpPskResponse) Reset()

func (*SetUpPskResponse) String

func (x *SetUpPskResponse) String() string

type StartRequest

type StartRequest struct {
	Port        string   `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	HostLogPath string   `protobuf:"bytes,2,opt,name=host_log_path,json=hostLogPath,proto3" json:"host_log_path,omitempty"`
	Install     *Payload `protobuf:"bytes,3,opt,name=install,proto3" json:"install,omitempty"`
	Update      *Payload `protobuf:"bytes,4,opt,name=update,proto3" json:"update,omitempty"`
	// contains filtered or unexported fields
}

func (*StartRequest) Descriptor deprecated

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

Deprecated: Use StartRequest.ProtoReflect.Descriptor instead.

func (*StartRequest) GetHostLogPath

func (x *StartRequest) GetHostLogPath() string

func (*StartRequest) GetInstall

func (x *StartRequest) GetInstall() *Payload

func (*StartRequest) GetPort

func (x *StartRequest) GetPort() string

func (*StartRequest) GetUpdate

func (x *StartRequest) GetUpdate() *Payload

func (*StartRequest) ProtoMessage

func (*StartRequest) ProtoMessage()

func (*StartRequest) ProtoReflect

func (x *StartRequest) ProtoReflect() protoreflect.Message

func (*StartRequest) Reset

func (x *StartRequest) Reset()

func (*StartRequest) String

func (x *StartRequest) String() string

type StartResponse

type StartResponse struct {
	Port    string `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	LogPath string `protobuf:"bytes,2,opt,name=log_path,json=logPath,proto3" json:"log_path,omitempty"`
	// contains filtered or unexported fields
}

func (*StartResponse) Descriptor deprecated

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

Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.

func (*StartResponse) GetLogPath

func (x *StartResponse) GetLogPath() string

func (*StartResponse) GetPort

func (x *StartResponse) GetPort() string

func (*StartResponse) ProtoMessage

func (*StartResponse) ProtoMessage()

func (*StartResponse) ProtoReflect

func (x *StartResponse) ProtoReflect() protoreflect.Message

func (*StartResponse) Reset

func (x *StartResponse) Reset()

func (*StartResponse) String

func (x *StartResponse) String() string

type UnimplementedNebraskaServiceServer

type UnimplementedNebraskaServiceServer struct {
}

UnimplementedNebraskaServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedNebraskaServiceServer) CreateTempDir

func (*UnimplementedNebraskaServiceServer) RemoveTempDir

func (*UnimplementedNebraskaServiceServer) Start

func (*UnimplementedNebraskaServiceServer) Stop

type UnimplementedRollbackServiceServer

type UnimplementedRollbackServiceServer struct {
}

UnimplementedRollbackServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRollbackServiceServer) SetUpNetworks

func (*UnimplementedRollbackServiceServer) SetUpPskNetwork

func (*UnimplementedRollbackServiceServer) VerifyRollback

type UnimplementedUpdateServiceServer

type UnimplementedUpdateServiceServer struct {
}

UnimplementedUpdateServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUpdateServiceServer) CheckForUpdate

func (*UnimplementedUpdateServiceServer) LSBReleaseContent

func (*UnimplementedUpdateServiceServer) OverwriteStatefulLSBRelease

func (*UnimplementedUpdateServiceServer) OverwriteStatefulLSBRelease(context.Context, *LSBRelease) (*empty.Empty, error)

func (*UnimplementedUpdateServiceServer) StatefulLSBReleaseContent

func (*UnimplementedUpdateServiceServer) StatefulLSBReleaseContent(context.Context, *empty.Empty) (*LSBRelease, error)

type UpdateRequest

type UpdateRequest struct {
	OmahaUrl   string `protobuf:"bytes,1,opt,name=omaha_url,json=omahaUrl,proto3" json:"omaha_url,omitempty"`
	AppVersion string `protobuf:"bytes,2,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetAppVersion

func (x *UpdateRequest) GetAppVersion() string

func (*UpdateRequest) GetOmahaUrl

func (x *UpdateRequest) GetOmahaUrl() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

func (x *UpdateRequest) ProtoReflect() protoreflect.Message

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateServiceClient

type UpdateServiceClient interface {
	CheckForUpdate(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	LSBReleaseContent(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LSBRelease, error)
	StatefulLSBReleaseContent(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LSBRelease, error)
	OverwriteStatefulLSBRelease(ctx context.Context, in *LSBRelease, opts ...grpc.CallOption) (*empty.Empty, error)
}

UpdateServiceClient is the client API for UpdateService service.

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

type UpdateServiceServer

type UpdateServiceServer interface {
	CheckForUpdate(context.Context, *UpdateRequest) (*empty.Empty, error)
	LSBReleaseContent(context.Context, *empty.Empty) (*LSBRelease, error)
	StatefulLSBReleaseContent(context.Context, *empty.Empty) (*LSBRelease, error)
	OverwriteStatefulLSBRelease(context.Context, *LSBRelease) (*empty.Empty, error)
}

UpdateServiceServer is the server API for UpdateService service.

type VerifyRollbackRequest

type VerifyRollbackRequest struct {
	Networks []*NetworkInformation `protobuf:"bytes,2,rep,name=networks,proto3" json:"networks,omitempty"`
	// contains filtered or unexported fields
}

VerifyRollbackRequest needs to contain the unchanged NetworkInformation from SetUpNetworksResponse.

func (*VerifyRollbackRequest) Descriptor deprecated

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

Deprecated: Use VerifyRollbackRequest.ProtoReflect.Descriptor instead.

func (*VerifyRollbackRequest) GetNetworks

func (x *VerifyRollbackRequest) GetNetworks() []*NetworkInformation

func (*VerifyRollbackRequest) ProtoMessage

func (*VerifyRollbackRequest) ProtoMessage()

func (*VerifyRollbackRequest) ProtoReflect

func (x *VerifyRollbackRequest) ProtoReflect() protoreflect.Message

func (*VerifyRollbackRequest) Reset

func (x *VerifyRollbackRequest) Reset()

func (*VerifyRollbackRequest) String

func (x *VerifyRollbackRequest) String() string

type VerifyRollbackResponse

type VerifyRollbackResponse struct {
	Successful bool `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"`
	// It provides details about the failure or further information about the
	// success that should be logged for reference.
	VerificationDetails string `protobuf:"bytes,2,opt,name=verification_details,json=verificationDetails,proto3" json:"verification_details,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyRollbackResponse) Descriptor deprecated

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

Deprecated: Use VerifyRollbackResponse.ProtoReflect.Descriptor instead.

func (*VerifyRollbackResponse) GetSuccessful

func (x *VerifyRollbackResponse) GetSuccessful() bool

func (*VerifyRollbackResponse) GetVerificationDetails

func (x *VerifyRollbackResponse) GetVerificationDetails() string

func (*VerifyRollbackResponse) ProtoMessage

func (*VerifyRollbackResponse) ProtoMessage()

func (*VerifyRollbackResponse) ProtoReflect

func (x *VerifyRollbackResponse) ProtoReflect() protoreflect.Message

func (*VerifyRollbackResponse) Reset

func (x *VerifyRollbackResponse) Reset()

func (*VerifyRollbackResponse) String

func (x *VerifyRollbackResponse) String() string

Jump to

Keyboard shortcuts

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