change

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Phase_name = map[int32]string{
	0: "CHANGE",
	1: "ROLLBACK",
}
View Source
var Phase_value = map[string]int32{
	"CHANGE":   0,
	"ROLLBACK": 1,
}
View Source
var Reason_name = map[int32]string{
	0: "NONE",
	1: "ERROR",
}
View Source
var Reason_value = map[string]int32{
	"NONE":  0,
	"ERROR": 1,
}
View Source
var State_name = map[int32]string{
	0: "PENDING",
	2: "COMPLETE",
	3: "FAILED",
}
View Source
var State_value = map[string]int32{
	"PENDING":  0,
	"COMPLETE": 2,
	"FAILED":   3,
}

Functions

This section is empty.

Types

type Phase

type Phase int32

Phase is the phase of a NetworkChange

const (
	// CHANGE indicates the change has been requested
	Phase_CHANGE Phase = 0
	// ROLLBACK indicates a rollback has been requested for the change
	Phase_ROLLBACK Phase = 1
)

func (Phase) EnumDescriptor

func (Phase) EnumDescriptor() ([]byte, []int)

func (Phase) String

func (x Phase) String() string

type Reason

type Reason int32

Reason is a reason for a FAILED state

const (
	// NONE indicates no error has occurred
	Reason_NONE Reason = 0
	// ERROR indicates an error occurred when applying the change
	Reason_ERROR Reason = 1
)

func (Reason) EnumDescriptor

func (Reason) EnumDescriptor() ([]byte, []int)

func (Reason) String

func (x Reason) String() string

type State

type State int32

State is the state of a phase

const (
	// PENDING indicates the phase is pending
	State_PENDING State = 0
	// COMPLETE indicates the phase is complete
	State_COMPLETE State = 2
	// FAILED indicates the phase failed
	State_FAILED State = 3
)

func (State) EnumDescriptor

func (State) EnumDescriptor() ([]byte, []int)

func (State) String

func (x State) String() string

type Status

type Status struct {
	// 'phase' is the current phase of the NetworkChange
	Phase Phase `protobuf:"varint,1,opt,name=phase,proto3,enum=onos.config.change.Phase" json:"phase,omitempty"`
	// 'state' is the state of the change within a Phase
	State State `protobuf:"varint,2,opt,name=state,proto3,enum=onos.config.change.State" json:"state,omitempty"`
	// 'reason' is a failure reason
	Reason Reason `protobuf:"varint,3,opt,name=reason,proto3,enum=onos.config.change.Reason" json:"reason,omitempty"`
	// message is a result message
	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// incarnation is the status incarnation number
	Incarnation uint64 `protobuf:"varint,5,opt,name=incarnation,proto3" json:"incarnation,omitempty"`
}

Status is the status of a NetworkChange

func (*Status) Descriptor

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

func (*Status) GetIncarnation

func (m *Status) GetIncarnation() uint64

func (*Status) GetMessage

func (m *Status) GetMessage() string

func (*Status) GetPhase

func (m *Status) GetPhase() Phase

func (*Status) GetReason

func (m *Status) GetReason() Reason

func (*Status) GetState

func (m *Status) GetState() State

func (*Status) Marshal

func (m *Status) Marshal() (dAtA []byte, err error)

func (*Status) MarshalTo

func (m *Status) MarshalTo(dAtA []byte) (int, error)

func (*Status) MarshalToSizedBuffer

func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) Size

func (m *Status) Size() (n int)

func (*Status) String

func (m *Status) String() string

func (*Status) Unmarshal

func (m *Status) Unmarshal(dAtA []byte) error

func (*Status) XXX_DiscardUnknown

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal

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

func (*Status) XXX_Merge

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

func (*Status) XXX_Size

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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