kanali: github.com/northwesternmutual/kanali/pkg/apis/kanali.io/v2 Index | Files

package v2

import "github.com/northwesternmutual/kanali/pkg/apis/kanali.io/v2"

Package v2 is the v2 version of the API. +groupName=kanali.io

Index

Package Files

doc.go register.go types.go zz_generated.deepcopy.go

Variables

var (
    // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
    SchemeBuilder runtime.SchemeBuilder

    AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: kanaliio.GroupName, Version: "v2"}

SchemeGroupVersion is group version used to register these objects

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type ApiKey Uses

type ApiKey struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata,omitempty"`
    Spec              ApiKeySpec `json:"spec"`
}

ApiKey describes an ApiKey

func (*ApiKey) DeepCopy Uses

func (in *ApiKey) DeepCopy() *ApiKey

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiKey.

func (*ApiKey) DeepCopyInto Uses

func (in *ApiKey) DeepCopyInto(out *ApiKey)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ApiKey) DeepCopyObject Uses

func (in *ApiKey) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ApiKeyBinding Uses

type ApiKeyBinding struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata,omitempty"`
    Spec              ApiKeyBindingSpec `json:"spec"`
}

ApiKeyBinding describes an ApiKeyBinding

func (*ApiKeyBinding) DeepCopy Uses

func (in *ApiKeyBinding) DeepCopy() *ApiKeyBinding

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiKeyBinding.

func (*ApiKeyBinding) DeepCopyInto Uses

func (in *ApiKeyBinding) DeepCopyInto(out *ApiKeyBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ApiKeyBinding) DeepCopyObject Uses

func (in *ApiKeyBinding) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ApiKeyBindingList Uses

type ApiKeyBindingList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty"`
    Items           []ApiKeyBinding `json:"items"`
}

ApiKeyBindingList represents a list of ApiKeyBinding resources

func (*ApiKeyBindingList) DeepCopy Uses

func (in *ApiKeyBindingList) DeepCopy() *ApiKeyBindingList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiKeyBindingList.

func (*ApiKeyBindingList) DeepCopyInto Uses

func (in *ApiKeyBindingList) DeepCopyInto(out *ApiKeyBindingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ApiKeyBindingList) DeepCopyObject Uses

func (in *ApiKeyBindingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ApiKeyBindingSpec Uses

type ApiKeyBindingSpec struct {
    Keys []Key `json:"keys"`
}

ApiKeyBindingSpec is the spec for an ApiKeyBinding

func (*ApiKeyBindingSpec) DeepCopy Uses

func (in *ApiKeyBindingSpec) DeepCopy() *ApiKeyBindingSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiKeyBindingSpec.

func (*ApiKeyBindingSpec) DeepCopyInto Uses

func (in *ApiKeyBindingSpec) DeepCopyInto(out *ApiKeyBindingSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ApiKeyList Uses

type ApiKeyList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty"`
    Items           []ApiKey `json:"items"`
}

ApiKeyList is a list of ApiKey resources

func (*ApiKeyList) DeepCopy Uses

func (in *ApiKeyList) DeepCopy() *ApiKeyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiKeyList.

func (*ApiKeyList) DeepCopyInto Uses

func (in *ApiKeyList) DeepCopyInto(out *ApiKeyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ApiKeyList) DeepCopyObject Uses

func (in *ApiKeyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ApiKeySpec Uses

type ApiKeySpec struct {
    Revisions []Revision `json:"revisions"`
}

APIKeySpec is the spec for an ApiKey

func (*ApiKeySpec) DeepCopy Uses

func (in *ApiKeySpec) DeepCopy() *ApiKeySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiKeySpec.

func (*ApiKeySpec) DeepCopyInto Uses

func (in *ApiKeySpec) DeepCopyInto(out *ApiKeySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ApiProxy Uses

type ApiProxy struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata,omitempty"`
    Spec              ApiProxySpec `json:"spec"`
}

ApiProxy describe an ApiProxy

func (*ApiProxy) DeepCopy Uses

func (in *ApiProxy) DeepCopy() *ApiProxy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiProxy.

func (*ApiProxy) DeepCopyInto Uses

func (in *ApiProxy) DeepCopyInto(out *ApiProxy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ApiProxy) DeepCopyObject Uses

func (in *ApiProxy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ApiProxyList Uses

type ApiProxyList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty"`
    Items           []ApiProxy `json:"items"`
}

ApiProxyList is a list of ApiProxy resources

func (*ApiProxyList) DeepCopy Uses

func (in *ApiProxyList) DeepCopy() *ApiProxyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiProxyList.

func (*ApiProxyList) DeepCopyInto Uses

func (in *ApiProxyList) DeepCopyInto(out *ApiProxyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ApiProxyList) DeepCopyObject Uses

func (in *ApiProxyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ApiProxySpec Uses

type ApiProxySpec struct {
    Source  Source   `json:"source"`
    Target  Target   `json:"target"`
    Plugins []Plugin `json:"plugins,omitempty"`
}

ApiProxySpec is the spec for an ApiProxy

func (*ApiProxySpec) DeepCopy Uses

func (in *ApiProxySpec) DeepCopy() *ApiProxySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiProxySpec.

func (*ApiProxySpec) DeepCopyInto Uses

func (in *ApiProxySpec) DeepCopyInto(out *ApiProxySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Backend Uses

type Backend struct {
    Endpoint *string  `json:"endpoint,omitempty"`
    Mock     *Mock    `json:"mock,omitempty"`
    Service  *Service `json:"service,omitempty"`
}

Backend describes an upstream server

func (*Backend) DeepCopy Uses

func (in *Backend) DeepCopy() *Backend

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backend.

func (*Backend) DeepCopyInto Uses

func (in *Backend) DeepCopyInto(out *Backend)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GranularProxy Uses

type GranularProxy struct {
    Verbs []string `json:"verbs"`
}

GranularProxy defines a list of authorized HTTP verbs

func (*GranularProxy) DeepCopy Uses

func (in *GranularProxy) DeepCopy() *GranularProxy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GranularProxy.

func (*GranularProxy) DeepCopyInto Uses

func (in *GranularProxy) DeepCopyInto(out *GranularProxy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Key Uses

type Key struct {
    Name        string `json:"name"`
    Rate        Rate   `json:"rate,omitempty"`
    DefaultRule Rule   `json:"defaultRule,omitempty"`
    Subpaths    []Path `json:"subpaths,omitempty"`
}

Key defines a unique key with permissions

func (*Key) DeepCopy Uses

func (in *Key) DeepCopy() *Key

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Key.

func (*Key) DeepCopyInto Uses

func (in *Key) DeepCopyInto(out *Key)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Label Uses

type Label struct {
    Name   string `json:"name"`
    Header string `json:"header,omitempty"`
    Value  string `json:"value,omitempty"`
}

Label defines a unique label to be matched against service metadata

func (*Label) DeepCopy Uses

func (in *Label) DeepCopy() *Label

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Label.

func (*Label) DeepCopyInto Uses

func (in *Label) DeepCopyInto(out *Label)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Mock Uses

type Mock struct {
    MockTargetName string `json:"mockTargetName"`
}

Mock describes a valid mock response

func (*Mock) DeepCopy Uses

func (in *Mock) DeepCopy() *Mock

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mock.

func (*Mock) DeepCopyInto Uses

func (in *Mock) DeepCopyInto(out *Mock)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MockTarget Uses

type MockTarget struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata,omitempty"`
    Spec              MockTargetSpec `json:"spec"`
}

MockTarget describes a MockTarget

func (*MockTarget) DeepCopy Uses

func (in *MockTarget) DeepCopy() *MockTarget

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MockTarget.

func (*MockTarget) DeepCopyInto Uses

func (in *MockTarget) DeepCopyInto(out *MockTarget)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MockTarget) DeepCopyObject Uses

func (in *MockTarget) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MockTargetList Uses

type MockTargetList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty"`
    Items           []MockTarget `json:"items"`
}

MockTargetList is a list of MockTarget resources

func (*MockTargetList) DeepCopy Uses

func (in *MockTargetList) DeepCopy() *MockTargetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MockTargetList.

func (*MockTargetList) DeepCopyInto Uses

func (in *MockTargetList) DeepCopyInto(out *MockTargetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MockTargetList) DeepCopyObject Uses

func (in *MockTargetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MockTargetSpec Uses

type MockTargetSpec struct {
    Routes []Route `json:"routes"`
}

MockTargetSpec is the spec for a MockTarget

func (*MockTargetSpec) DeepCopy Uses

func (in *MockTargetSpec) DeepCopy() *MockTargetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MockTargetSpec.

func (*MockTargetSpec) DeepCopyInto Uses

func (in *MockTargetSpec) DeepCopyInto(out *MockTargetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Path Uses

type Path struct {
    Path string `json:"path"`
    Rule Rule   `json:"rule,omitempty"`
}

Path describes a subpath with unique permissions

func (*Path) DeepCopy Uses

func (in *Path) DeepCopy() *Path

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Path.

func (*Path) DeepCopyInto Uses

func (in *Path) DeepCopyInto(out *Path)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Plugin Uses

type Plugin struct {
    Name    string            `json:"name"`
    Version string            `json:"version,omitempty"`
    Config  map[string]string `json:"config,omitempty"`
}

Plugin describes a unique plugin to be envoked

func (*Plugin) DeepCopy Uses

func (in *Plugin) DeepCopy() *Plugin

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Plugin.

func (*Plugin) DeepCopyInto Uses

func (in *Plugin) DeepCopyInto(out *Plugin)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Rate Uses

type Rate struct {
    Amount int    `json:"amount,omitempty"`
    Unit   string `json:"unit,omitempty"`
}

Rate defines rate limit rule

func (*Rate) DeepCopy Uses

func (in *Rate) DeepCopy() *Rate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rate.

func (*Rate) DeepCopyInto Uses

func (in *Rate) DeepCopyInto(out *Rate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Revision Uses

type Revision struct {
    Data     string         `json:"data"`
    Status   RevisionStatus `json:"status"`
    LastUsed string         `json:"lastUsed"`
}

ApiKeyRevision is an ApiKey revision

func (*Revision) DeepCopy Uses

func (in *Revision) DeepCopy() *Revision

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Revision.

func (*Revision) DeepCopyInto Uses

func (in *Revision) DeepCopyInto(out *Revision)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RevisionStatus Uses

type RevisionStatus string
const (
    RevisionStatusActive   RevisionStatus = "Active"
    RevisionStatusInactive RevisionStatus = "Inactive"
)

type Route Uses

type Route struct {
    Path       string            `json:"path"`
    StatusCode int               `json:"status"`
    Methods    []string          `json:"methods,omitempty"`
    Headers    map[string]string `json:"headers,omitempty"`
    Body       []byte            `json:"body"`
}

Route defines the behavior of an http request for a unique route

func (*Route) DeepCopy Uses

func (in *Route) DeepCopy() *Route

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.

func (*Route) DeepCopyInto Uses

func (in *Route) DeepCopyInto(out *Route)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Rule Uses

type Rule struct {
    Global   bool          `json:"global,omitempty"`
    Granular GranularProxy `json:"granular,omitempty"`
}

Rule defines a single permission

func (*Rule) DeepCopy Uses

func (in *Rule) DeepCopy() *Rule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.

func (*Rule) DeepCopyInto Uses

func (in *Rule) DeepCopyInto(out *Rule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SSL Uses

type SSL struct {
    SecretName string `json:"secretName"`
}

SSL describes the anoatomy of a backend TLS connection

func (*SSL) DeepCopy Uses

func (in *SSL) DeepCopy() *SSL

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSL.

func (*SSL) DeepCopyInto Uses

func (in *SSL) DeepCopyInto(out *SSL)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Service Uses

type Service struct {
    Name   string  `json:"name,omitempty"`
    Port   int64   `json:"port"`
    Labels []Label `json:"labels,omitempty"`
}

Service describes a Kubernetes service

func (*Service) DeepCopy Uses

func (in *Service) DeepCopy() *Service

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.

func (*Service) DeepCopyInto Uses

func (in *Service) DeepCopyInto(out *Service)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Source Uses

type Source struct {
    Path        string `json:"path"`
    VirtualHost string `json:"virtualHost,omitempty"`
}

Source represents an incoming request

func (*Source) DeepCopy Uses

func (in *Source) DeepCopy() *Source

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.

func (*Source) DeepCopyInto Uses

func (in *Source) DeepCopyInto(out *Source)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Target Uses

type Target struct {
    Path    string  `json:"path,omitempty"`
    Backend Backend `json:"backend,omitempty"`
    SSL     *SSL    `json:"ssl,omitempty"`
}

Target describes a target proxy

func (*Target) DeepCopy Uses

func (in *Target) DeepCopy() *Target

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.

func (*Target) DeepCopyInto Uses

func (in *Target) DeepCopyInto(out *Target)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Package v2 imports 4 packages (graph) and is imported by 17 packages. Updated 2018-03-31. Refresh now. Tools for package owners.