Back to godoc.org

Package core

v0.14.0
Latest Go to latest

The latest major version is .

Published: Aug 12, 2020 | License: Apache-2.0 | Module: github.com/solo-io/solo-kit

Index

Variables

var E_Resource = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MessageOptions)(nil),
	ExtensionType: (*Resource)(nil),
	Field:         10000,
	Name:          "core.solo.io.resource",
	Tag:           "bytes,10000,opt,name=resource",
	Filename:      "solo-kit.proto",
}
var Status_State_name = map[int32]string{
	0: "Pending",
	1: "Accepted",
	2: "Rejected",
	3: "Warning",
}
var Status_State_value = map[string]int32{
	"Pending":  0,
	"Accepted": 1,
	"Rejected": 2,
	"Warning":  3,
}

type Metadata

type Metadata struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`

	Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`

	Cluster string `protobuf:"bytes,7,opt,name=cluster,proto3" json:"cluster,omitempty"`

	ResourceVersion string `protobuf:"bytes,4,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty" testdiff:"ignore"`

	Labels map[string]string "" /* 153 byte string literal not displayed */

	Annotations map[string]string "" /* 163 byte string literal not displayed */

	Generation int64 `protobuf:"varint,8,opt,name=generation,proto3" json:"generation,omitempty"`

	OwnerReferences      []*Metadata_OwnerReference `protobuf:"bytes,9,rep,name=owner_references,json=ownerReferences,proto3" json:"owner_references,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

* Metadata contains general properties of resources for purposes of versioning, annotating, and namespacing.

func (*Metadata) Descriptor

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

func (*Metadata) Equal

func (this *Metadata) Equal(that interface{}) bool

func (*Metadata) GetAnnotations

func (m *Metadata) GetAnnotations() map[string]string

func (*Metadata) GetCluster

func (m *Metadata) GetCluster() string

func (*Metadata) GetGeneration

func (m *Metadata) GetGeneration() int64

func (*Metadata) GetLabels

func (m *Metadata) GetLabels() map[string]string

func (*Metadata) GetName

func (m *Metadata) GetName() string

func (*Metadata) GetNamespace

func (m *Metadata) GetNamespace() string

func (*Metadata) GetOwnerReferences

func (m *Metadata) GetOwnerReferences() []*Metadata_OwnerReference

func (*Metadata) GetResourceVersion

func (m *Metadata) GetResourceVersion() string

func (*Metadata) Hash

func (m *Metadata) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (Metadata) Less

func (m Metadata) Less(m2 Metadata) bool

func (Metadata) Match

func (m Metadata) Match(ref ResourceRef) bool

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (Metadata) Ref

func (m Metadata) Ref() ResourceRef

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

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

func (*Metadata) XXX_Merge

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

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

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

type Metadata_OwnerReference

type Metadata_OwnerReference struct {
	ApiVersion           string           `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	BlockOwnerDeletion   *types.BoolValue `protobuf:"bytes,2,opt,name=block_owner_deletion,json=blockOwnerDeletion,proto3" json:"block_owner_deletion,omitempty"`
	Controller           *types.BoolValue `protobuf:"bytes,3,opt,name=controller,proto3" json:"controller,omitempty"`
	Kind                 string           `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"`
	Name                 string           `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	Uid                  string           `protobuf:"bytes,6,opt,name=uid,proto3" json:"uid,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

proto message representing kubernertes owner reference https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.15/#ownerreference-v1-meta

func (*Metadata_OwnerReference) Descriptor

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

func (*Metadata_OwnerReference) Equal

func (this *Metadata_OwnerReference) Equal(that interface{}) bool

func (*Metadata_OwnerReference) GetApiVersion

func (m *Metadata_OwnerReference) GetApiVersion() string

func (*Metadata_OwnerReference) GetBlockOwnerDeletion

func (m *Metadata_OwnerReference) GetBlockOwnerDeletion() *types.BoolValue

func (*Metadata_OwnerReference) GetController

func (m *Metadata_OwnerReference) GetController() *types.BoolValue

func (*Metadata_OwnerReference) GetKind

func (m *Metadata_OwnerReference) GetKind() string

func (*Metadata_OwnerReference) GetName

func (m *Metadata_OwnerReference) GetName() string

func (*Metadata_OwnerReference) GetUid

func (m *Metadata_OwnerReference) GetUid() string

func (*Metadata_OwnerReference) Hash

func (m *Metadata_OwnerReference) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Metadata_OwnerReference) ProtoMessage

func (*Metadata_OwnerReference) ProtoMessage()

func (*Metadata_OwnerReference) Reset

func (m *Metadata_OwnerReference) Reset()

func (*Metadata_OwnerReference) String

func (m *Metadata_OwnerReference) String() string

func (*Metadata_OwnerReference) XXX_DiscardUnknown

func (m *Metadata_OwnerReference) XXX_DiscardUnknown()

func (*Metadata_OwnerReference) XXX_Marshal

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

func (*Metadata_OwnerReference) XXX_Merge

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

func (*Metadata_OwnerReference) XXX_Size

func (m *Metadata_OwnerReference) XXX_Size() int

func (*Metadata_OwnerReference) XXX_Unmarshal

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

type Resource

type Resource struct {
	ShortName string `protobuf:"bytes,1,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`

	PluralName string `protobuf:"bytes,2,opt,name=plural_name,json=pluralName,proto3" json:"plural_name,omitempty"`

	ClusterScoped bool `protobuf:"varint,3,opt,name=cluster_scoped,json=clusterScoped,proto3" json:"cluster_scoped,omitempty"`

	SkipDocsGen bool `protobuf:"varint,4,opt,name=skip_docs_gen,json=skipDocsGen,proto3" json:"skip_docs_gen,omitempty"`

	SkipHashingAnnotations bool     "" /* 130 byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{} `json:"-"`
	XXX_unrecognized       []byte   `json:"-"`
	XXX_sizecache          int32    `json:"-"`
}

func (*Resource) Descriptor

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

func (*Resource) GetClusterScoped

func (m *Resource) GetClusterScoped() bool

func (*Resource) GetPluralName

func (m *Resource) GetPluralName() string

func (*Resource) GetShortName

func (m *Resource) GetShortName() string

func (*Resource) GetSkipDocsGen

func (m *Resource) GetSkipDocsGen() bool

func (*Resource) GetSkipHashingAnnotations

func (m *Resource) GetSkipHashingAnnotations() bool

func (*Resource) Hash

func (m *Resource) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) Reset

func (m *Resource) Reset()

func (*Resource) String

func (m *Resource) String() string

func (*Resource) XXX_DiscardUnknown

func (m *Resource) XXX_DiscardUnknown()

func (*Resource) XXX_Marshal

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

func (*Resource) XXX_Merge

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

func (*Resource) XXX_Size

func (m *Resource) XXX_Size() int

func (*Resource) XXX_Unmarshal

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

type ResourceRef

type ResourceRef struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
}

A way to reference resources across namespaces

func (*ResourceRef) Descriptor

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

func (*ResourceRef) Equal

func (this *ResourceRef) Equal(that interface{}) bool

func (*ResourceRef) GetName

func (m *ResourceRef) GetName() string

func (*ResourceRef) GetNamespace

func (m *ResourceRef) GetNamespace() string

func (*ResourceRef) Hash

func (m *ResourceRef) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (ResourceRef) Key

func (r ResourceRef) Key() string

func (*ResourceRef) ProtoMessage

func (*ResourceRef) ProtoMessage()

func (*ResourceRef) Reset

func (m *ResourceRef) Reset()

func (*ResourceRef) String

func (m *ResourceRef) String() string

func (ResourceRef) Strings

func (r ResourceRef) Strings() (string, string)

func (*ResourceRef) XXX_DiscardUnknown

func (m *ResourceRef) XXX_DiscardUnknown()

func (*ResourceRef) XXX_Marshal

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

func (*ResourceRef) XXX_Merge

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

func (*ResourceRef) XXX_Size

func (m *ResourceRef) XXX_Size() int

func (*ResourceRef) XXX_Unmarshal

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

type Status

type Status struct {
	State Status_State `protobuf:"varint,1,opt,name=state,proto3,enum=core.solo.io.Status_State" json:"state,omitempty"`

	Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`

	ReportedBy string `protobuf:"bytes,3,opt,name=reported_by,json=reportedBy,proto3" json:"reported_by,omitempty"`

	SubresourceStatuses map[string]*Status "" /* 206 byte string literal not displayed */

	Details              *types.Struct `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

* Status indicates whether a resource has been (in)validated by a reporter in the system. Statuses are meant to be read-only by users

func (Status) DeepCopyInto

func (s Status) DeepCopyInto(out *Status)

func (*Status) Descriptor

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

func (*Status) Equal

func (this *Status) Equal(that interface{}) bool

func (Status) Flatten

func (s Status) Flatten() Status

collapse a status into a status with no children

func (*Status) GetDetails

func (m *Status) GetDetails() *types.Struct

func (*Status) GetReason

func (m *Status) GetReason() string

func (*Status) GetReportedBy

func (m *Status) GetReportedBy() string

func (*Status) GetState

func (m *Status) GetState() Status_State

func (*Status) GetSubresourceStatuses

func (m *Status) GetSubresourceStatuses() map[string]*Status

func (*Status) Hash

func (m *Status) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) String

func (m *Status) String() string

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

type Status_State

type Status_State int32
const (
	// Pending status indicates the resource has not yet been validated
	Status_Pending Status_State = 0
	// Accepted indicates the resource has been validated
	Status_Accepted Status_State = 1
	// Rejected indicates an invalid configuration by the user
	// Rejected resources may be propagated to the xDS server depending on their severity
	Status_Rejected Status_State = 2
	// Warning indicates a partially invalid configuration by the user
	// Resources with Warnings may be partially accepted by a controller, depending on the implementation
	Status_Warning Status_State = 3
)

func (Status_State) EnumDescriptor

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

func (Status_State) String

func (x Status_State) String() string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier