yotiprotoattr

package
v2.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContentType_name = map[int32]string{
	0: "UNDEFINED",
	1: "STRING",
	2: "JPEG",
	3: "DATE",
	4: "PNG",
	5: "JSON",
}
View Source
var ContentType_value = map[string]int32{
	"UNDEFINED": 0,
	"STRING":    1,
	"JPEG":      2,
	"DATE":      3,
	"PNG":       4,
	"JSON":      5,
}

Functions

This section is empty.

Types

type Anchor

type Anchor struct {
	ArtifactLink         []byte   `protobuf:"bytes,1,opt,name=artifact_link,json=artifactLink,proto3" json:"artifact_link,omitempty"`
	OriginServerCerts    [][]byte `protobuf:"bytes,2,rep,name=origin_server_certs,json=originServerCerts,proto3" json:"origin_server_certs,omitempty"`
	ArtifactSignature    []byte   `protobuf:"bytes,3,opt,name=artifact_signature,json=artifactSignature,proto3" json:"artifact_signature,omitempty"`
	SubType              string   `protobuf:"bytes,4,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
	Signature            []byte   `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	SignedTimeStamp      []byte   `protobuf:"bytes,6,opt,name=signed_time_stamp,json=signedTimeStamp,proto3" json:"signed_time_stamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Anchor) Descriptor

func (*Anchor) Descriptor() ([]byte, []int)
func (m *Anchor) GetArtifactLink() []byte

func (*Anchor) GetArtifactSignature

func (m *Anchor) GetArtifactSignature() []byte

func (*Anchor) GetOriginServerCerts

func (m *Anchor) GetOriginServerCerts() [][]byte

func (*Anchor) GetSignature

func (m *Anchor) GetSignature() []byte

func (*Anchor) GetSignedTimeStamp

func (m *Anchor) GetSignedTimeStamp() []byte

func (*Anchor) GetSubType

func (m *Anchor) GetSubType() string

func (*Anchor) ProtoMessage

func (*Anchor) ProtoMessage()

func (*Anchor) Reset

func (m *Anchor) Reset()

func (*Anchor) String

func (m *Anchor) String() string

func (*Anchor) XXX_DiscardUnknown

func (m *Anchor) XXX_DiscardUnknown()

func (*Anchor) XXX_Marshal

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

func (*Anchor) XXX_Merge

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

func (*Anchor) XXX_Size

func (m *Anchor) XXX_Size() int

func (*Anchor) XXX_Unmarshal

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

type Attribute

type Attribute struct {
	Name                 string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value                []byte      `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	ContentType          ContentType `` /* 126-byte string literal not displayed */
	Anchors              []*Anchor   `protobuf:"bytes,4,rep,name=anchors,proto3" json:"anchors,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Attribute) Descriptor

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

func (*Attribute) GetAnchors

func (m *Attribute) GetAnchors() []*Anchor

func (*Attribute) GetContentType

func (m *Attribute) GetContentType() ContentType

func (*Attribute) GetName

func (m *Attribute) GetName() string

func (*Attribute) GetValue

func (m *Attribute) GetValue() []byte

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) Reset

func (m *Attribute) Reset()

func (*Attribute) String

func (m *Attribute) String() string

func (*Attribute) XXX_DiscardUnknown

func (m *Attribute) XXX_DiscardUnknown()

func (*Attribute) XXX_Marshal

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

func (*Attribute) XXX_Merge

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

func (*Attribute) XXX_Size

func (m *Attribute) XXX_Size() int

func (*Attribute) XXX_Unmarshal

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

type AttributeAndId

type AttributeAndId struct {
	Attribute            *Attribute `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"`
	AttributeId          []byte     `protobuf:"bytes,2,opt,name=attribute_id,json=attributeId,proto3" json:"attribute_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

AttributeAndId is a simple container for holding an attribute's value alongside its ID.

func (*AttributeAndId) Descriptor

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

func (*AttributeAndId) GetAttribute

func (m *AttributeAndId) GetAttribute() *Attribute

func (*AttributeAndId) GetAttributeId

func (m *AttributeAndId) GetAttributeId() []byte

func (*AttributeAndId) ProtoMessage

func (*AttributeAndId) ProtoMessage()

func (*AttributeAndId) Reset

func (m *AttributeAndId) Reset()

func (*AttributeAndId) String

func (m *AttributeAndId) String() string

func (*AttributeAndId) XXX_DiscardUnknown

func (m *AttributeAndId) XXX_DiscardUnknown()

func (*AttributeAndId) XXX_Marshal

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

func (*AttributeAndId) XXX_Merge

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

func (*AttributeAndId) XXX_Size

func (m *AttributeAndId) XXX_Size() int

func (*AttributeAndId) XXX_Unmarshal

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

type AttributeAndIdList

type AttributeAndIdList struct {
	AttributeAndIdList   []*AttributeAndId `protobuf:"bytes,1,rep,name=attribute_and_id_list,json=attributeAndIdList,proto3" json:"attribute_and_id_list,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*AttributeAndIdList) Descriptor

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

func (*AttributeAndIdList) GetAttributeAndIdList

func (m *AttributeAndIdList) GetAttributeAndIdList() []*AttributeAndId

func (*AttributeAndIdList) ProtoMessage

func (*AttributeAndIdList) ProtoMessage()

func (*AttributeAndIdList) Reset

func (m *AttributeAndIdList) Reset()

func (*AttributeAndIdList) String

func (m *AttributeAndIdList) String() string

func (*AttributeAndIdList) XXX_DiscardUnknown

func (m *AttributeAndIdList) XXX_DiscardUnknown()

func (*AttributeAndIdList) XXX_Marshal

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

func (*AttributeAndIdList) XXX_Merge

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

func (*AttributeAndIdList) XXX_Size

func (m *AttributeAndIdList) XXX_Size() int

func (*AttributeAndIdList) XXX_Unmarshal

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

type AttributeList

type AttributeList struct {
	Attributes           []*Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*AttributeList) Descriptor

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

func (*AttributeList) GetAttributes

func (m *AttributeList) GetAttributes() []*Attribute

func (*AttributeList) ProtoMessage

func (*AttributeList) ProtoMessage()

func (*AttributeList) Reset

func (m *AttributeList) Reset()

func (*AttributeList) String

func (m *AttributeList) String() string

func (*AttributeList) XXX_DiscardUnknown

func (m *AttributeList) XXX_DiscardUnknown()

func (*AttributeList) XXX_Marshal

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

func (*AttributeList) XXX_Merge

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

func (*AttributeList) XXX_Size

func (m *AttributeList) XXX_Size() int

func (*AttributeList) XXX_Unmarshal

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

type AttributeSigning

type AttributeSigning struct {
	Name                 string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value                []byte      `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	ContentType          ContentType `` /* 126-byte string literal not displayed */
	ArtifactSignature    []byte      `protobuf:"bytes,4,opt,name=artifact_signature,json=artifactSignature,proto3" json:"artifact_signature,omitempty"`
	SubType              string      `protobuf:"bytes,5,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty"`
	SignedTimeStamp      []byte      `protobuf:"bytes,6,opt,name=signed_time_stamp,json=signedTimeStamp,proto3" json:"signed_time_stamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*AttributeSigning) Descriptor

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

func (*AttributeSigning) GetArtifactSignature

func (m *AttributeSigning) GetArtifactSignature() []byte

func (*AttributeSigning) GetContentType

func (m *AttributeSigning) GetContentType() ContentType

func (*AttributeSigning) GetName

func (m *AttributeSigning) GetName() string

func (*AttributeSigning) GetSignedTimeStamp

func (m *AttributeSigning) GetSignedTimeStamp() []byte

func (*AttributeSigning) GetSubType

func (m *AttributeSigning) GetSubType() string

func (*AttributeSigning) GetValue

func (m *AttributeSigning) GetValue() []byte

func (*AttributeSigning) ProtoMessage

func (*AttributeSigning) ProtoMessage()

func (*AttributeSigning) Reset

func (m *AttributeSigning) Reset()

func (*AttributeSigning) String

func (m *AttributeSigning) String() string

func (*AttributeSigning) XXX_DiscardUnknown

func (m *AttributeSigning) XXX_DiscardUnknown()

func (*AttributeSigning) XXX_Marshal

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

func (*AttributeSigning) XXX_Merge

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

func (*AttributeSigning) XXX_Size

func (m *AttributeSigning) XXX_Size() int

func (*AttributeSigning) XXX_Unmarshal

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

type ContentType

type ContentType int32

ContentType indicates how to interpret the ‘Value’ field of an Attribute.

const (
	// UNDEFINED should not be seen, and is used as an error placeholder
	// value.
	ContentType_UNDEFINED ContentType = 0
	// STRING means the value is UTF-8 encoded text.
	ContentType_STRING ContentType = 1
	// JPEG indicates a standard .jpeg image.
	ContentType_JPEG ContentType = 2
	// Date as string in RFC3339 format (YYYY-MM-DD).
	ContentType_DATE ContentType = 3
	// PNG indicates a standard .png image.
	ContentType_PNG ContentType = 4
	// JSON means the value is encoded using JSON.
	ContentType_JSON ContentType = 5
)

func (ContentType) EnumDescriptor

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

func (ContentType) String

func (x ContentType) String() string

Jump to

Keyboard shortcuts

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