v1alpha1

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

+groupName=policy.kubevault.com

Index

Constants

View Source
const (
	ResourceKindVaultPolicy = "VaultPolicy"
	ResourceVaultPolicy     = "vaultpolicy"
	ResourceVaultPolicies   = "vaultpolicies"
)
View Source
const (
	ResourceKindVaultPolicyBinding = "VaultPolicyBinding"
	ResourceVaultPolicyBinding     = "vaultpolicybinding"
	ResourceVaultPolicyBindings    = "vaultpolicybindings"
)

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: policy.GroupName, Version: "v1alpha1"}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AppRoleSubjectRef

type AppRoleSubjectRef struct {
	// Specifies the path where approle auth is enabled
	// default : approle
	// +optional
	Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"`

	// RoleName is the Name of the AppRole
	// This defaults to following format: k8s.${cluster}.${metadata.namespace}.${metadata.name}
	RoleName string `json:"roleName,omitempty" protobuf:"bytes,2,opt,name=roleName"`

	// Require secret_id to be presented when logging in using this AppRole.
	BindSecretID bool `json:"bindSecretID" protobuf:"bytes,3,opt,name=bindSecretID"`

	// List of CIDR blocks; if set, specifies blocks of IP addresses which can perform the login operation.
	SecretIDBoundCidrs []string `json:"secretIdBoundCidrs,omitempty" protobuf:"bytes,4,opt,name=secretIdBoundCidrs"`

	// Number of times any particular SecretID can be used to fetch a token from this AppRole, after which the SecretID will expire. A value of zero will allow unlimited uses.
	SecretIDNumUses int64 `json:"secretIdNumUses,omitempty" protobuf:"bytes,5,opt,name=secretIdNumUses"`

	// Duration in either an integer number of seconds (3600) or an integer time unit (60m) after which any SecretID expires.
	SecretIDTTL string `json:"secretIdTTL,omitempty" protobuf:"bytes,6,opt,name=secretIdTTL"`

	// If set, the secret IDs generated using this role will be cluster local. This can only be set during role creation and once set, it can't be reset later.
	EnableLocalSecretIDs bool `json:"enableLocalSecretIds,omitempty" protobuf:"bytes,7,opt,name=enableLocalSecretIds"`

	// The incremental lifetime for generated tokens. This current value of this will be referenced at renewal time.
	TokenTTL int64 `json:"tokenTTL,omitempty" protobuf:"bytes,8,opt,name=tokenTTL"`

	// The maximum lifetime for generated tokens. This current value of this will be referenced at renewal time.
	TokenMaxTTL int64 `json:"tokenMaxTTL,omitempty" protobuf:"bytes,9,opt,name=tokentokenMaxTTL_max_ttl"`

	// List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
	TokenPolicies []string `json:"tokenPolicies,omitempty" protobuf:"bytes,10,opt,name=tokenPolicies"`

	// List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
	TokenBoundCidrs []string `json:"tokenBoundCidrs,omitempty" protobuf:"bytes,11,opt,name=tokenBoundCidrs"`

	// If set, will encode an explicit max TTL onto the token. This is a hard cap even if token_ttl and token_max_ttl would otherwise allow a renewal.
	TokenExplicitMaxTTL int64 `json:"tokenExplicitMaxTTL,omitempty" protobuf:"bytes,12,opt,name=tokenExplicitMaxTTL"`

	// If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
	TokenNoDefaultPolicy bool `json:"tokenNoDefaultPolicy,omitempty" protobuf:"bytes,13,opt,name=tokenNoDefaultPolicy"`

	// The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
	TokenNumUses int64 `json:"tokenNumUses,omitempty" protobuf:"bytes,14,opt,name=tokenNumUses"`

	// The period, if any, to set on the token.
	TokenPeriod int64 `json:"tokenPeriod,omitempty" protobuf:"bytes,15,opt,name=tokenPeriod"`

	// The type of token that should be generated. Can be service, batch, or default to use the mount's tuned default (which unless changed will be service tokens). For token store roles, there are two additional possibilities: default-service and default-batch which specify the type to return unless the client requests a different type at generation time.
	TokenType string `json:"tokenType,omitempty" protobuf:"bytes,16,opt,name=tokenType"`
}

More info: https://www.vaultproject.io/api-docs/auth/approle#create-update-approle

func (*AppRoleSubjectRef) DeepCopy

func (in *AppRoleSubjectRef) DeepCopy() *AppRoleSubjectRef

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

func (*AppRoleSubjectRef) DeepCopyInto

func (in *AppRoleSubjectRef) DeepCopyInto(out *AppRoleSubjectRef)

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

func (*AppRoleSubjectRef) Descriptor

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

func (*AppRoleSubjectRef) Marshal

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

func (*AppRoleSubjectRef) MarshalTo

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

func (*AppRoleSubjectRef) MarshalToSizedBuffer

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

func (*AppRoleSubjectRef) ProtoMessage

func (*AppRoleSubjectRef) ProtoMessage()

func (*AppRoleSubjectRef) Reset

func (m *AppRoleSubjectRef) Reset()

func (*AppRoleSubjectRef) Size

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

func (*AppRoleSubjectRef) String

func (this *AppRoleSubjectRef) String() string

func (*AppRoleSubjectRef) Unmarshal

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

func (*AppRoleSubjectRef) XXX_DiscardUnknown

func (m *AppRoleSubjectRef) XXX_DiscardUnknown()

func (*AppRoleSubjectRef) XXX_Marshal

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

func (*AppRoleSubjectRef) XXX_Merge

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

func (*AppRoleSubjectRef) XXX_Size

func (m *AppRoleSubjectRef) XXX_Size() int

func (*AppRoleSubjectRef) XXX_Unmarshal

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

type JWTSubjectRef

type JWTSubjectRef struct {
	// Specifies the path where jwt/oidc auth is enabled
	// default : jwt
	// +optional
	Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"`

	// Name of the role.
	// This defaults to following format: k8s.${cluster}.${metadata.namespace}.${metadata.name}
	Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"`

	// Type of role, either "oidc" (default) or "jwt".
	RoleType string `json:"roleType,omitempty" protobuf:"bytes,3,opt,name=roleType"`

	// List of aud claims to match against. Any match is sufficient. Required for "jwt" roles, optional for "oidc" roles.
	BoundAudiences []string `json:"boundAudiences,omitempty" protobuf:"bytes,4,opt,name=boundAudiences"`

	// The claim to use to uniquely identify the user; this will be used as the name for the Identity entity alias created due to a successful login. The claim value must be a string.
	UserClaim string `json:"userClaim" protobuf:"bytes,5,opt,name=userClaim"`

	// If set, requires that the sub claim matches this value.
	BoundSubject string `json:"boundSubject,omitempty" protobuf:"bytes,6,opt,name=boundSubject"`

	// If set, a map of claims/values to match against. The expected value may be a single string or a list of strings. The interpretation of the bound claim values is configured with bound_claims_type.
	BoundClaims map[string]string `json:"boundClaims,omitempty" protobuf:"bytes,7,opt,name=boundClaims"`

	// Configures the interpretation of the bound_claims values. If "string" (the default), the values will treated as string literals and must match exactly. If set to "glob", the values will be interpreted as globs, with * matching any number of characters.
	BoundClaimsType string `json:"boundClaimsType,omitempty" protobuf:"bytes,8,opt,name=boundClaimsType"`

	// The claim to use to uniquely identify the set of groups to which the user belongs; this will be used as the names for the Identity group aliases created due to a successful login. The claim value must be a list of strings.
	GroupClaim string `json:"groupClaim,omitempty" protobuf:"bytes,9,opt,name=groupClaim"`

	// If set, a map of claims (keys) to be copied to specified metadata fields (values).
	ClaimMappings map[string]string `json:"claimMappings,omitempty" protobuf:"bytes,10,opt,name=claimMappings"`

	// If set, a list of OIDC scopes to be used with an OIDC role. The standard scope "openid" is automatically included and need not be specified.
	OIDCScopes []string `json:"oidcScopes,omitempty" protobuf:"bytes,11,opt,name=oidcScopes"`

	// The list of allowed values for redirect_uri during OIDC logins.
	AllowedRedirectUris []string `json:"allowedRedirectUris" protobuf:"bytes,12,opt,name=allowedRedirectUris"`

	VerboseOIDCLogging bool `json:"verboseOidcLogging,omitempty" protobuf:"bytes,13,opt,name=verboseOidcLogging"`

	// The incremental lifetime for generated tokens. This current value of this will be referenced at renewal time.
	TokenTTL int64 `json:"tokenTTL,omitempty" protobuf:"bytes,14,opt,name=tokenTTL"`

	// The maximum lifetime for generated tokens. This current value of this will be referenced at renewal time.
	TokenMaxTTL int64 `json:"tokenMaxTTL,omitempty" protobuf:"bytes,15,opt,name=tokentokenMaxTTL_max_ttl"`

	// List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
	TokenPolicies []string `json:"tokenPolicies,omitempty" protobuf:"bytes,16,opt,name=tokenPolicies"`

	// List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
	TokenBoundCidrs []string `json:"tokenBoundCidrs,omitempty" protobuf:"bytes,17,opt,name=tokenBoundCidrs"`

	// If set, will encode an explicit max TTL onto the token. This is a hard cap even if token_ttl and token_max_ttl would otherwise allow a renewal.
	TokenExplicitMaxTTL int64 `json:"tokenExplicitMaxTTL,omitempty" protobuf:"bytes,18,opt,name=tokenExplicitMaxTTL"`

	// If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
	TokenNoDefaultPolicy bool `json:"tokenNoDefaultPolicy,omitempty" protobuf:"bytes,19,opt,name=tokenNoDefaultPolicy"`

	// The maximum number of times a generated token may be used (within its lifetime); 0 means unlimited.
	TokenNumUses int64 `json:"tokenNumUses,omitempty" protobuf:"bytes,20,opt,name=tokenNumUses"`

	// The period, if any, to set on the token.
	TokenPeriod int64 `json:"tokenPeriod,omitempty" protobuf:"bytes,21,opt,name=tokenPeriod"`

	// The type of token that should be generated. Can be service, batch, or default to use the mount's tuned default (which unless changed will be service tokens). For token store roles, there are two additional possibilities: default-service and default-batch which specify the type to return unless the client requests a different type at generation time.
	TokenType string `json:"tokenType,omitempty" protobuf:"bytes,22,opt,name=tokenType"`
}

More info: https://www.vaultproject.io/api-docs/auth/jwt#create-role

func (*JWTSubjectRef) DeepCopy

func (in *JWTSubjectRef) DeepCopy() *JWTSubjectRef

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

func (*JWTSubjectRef) DeepCopyInto

func (in *JWTSubjectRef) DeepCopyInto(out *JWTSubjectRef)

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

func (*JWTSubjectRef) Descriptor

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

func (*JWTSubjectRef) Marshal

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

func (*JWTSubjectRef) MarshalTo

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

func (*JWTSubjectRef) MarshalToSizedBuffer

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

func (*JWTSubjectRef) ProtoMessage

func (*JWTSubjectRef) ProtoMessage()

func (*JWTSubjectRef) Reset

func (m *JWTSubjectRef) Reset()

func (*JWTSubjectRef) Size

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

func (*JWTSubjectRef) String

func (this *JWTSubjectRef) String() string

func (*JWTSubjectRef) Unmarshal

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

func (*JWTSubjectRef) XXX_DiscardUnknown

func (m *JWTSubjectRef) XXX_DiscardUnknown()

func (*JWTSubjectRef) XXX_Marshal

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

func (*JWTSubjectRef) XXX_Merge

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

func (*JWTSubjectRef) XXX_Size

func (m *JWTSubjectRef) XXX_Size() int

func (*JWTSubjectRef) XXX_Unmarshal

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

type KubernetesSubjectRef

type KubernetesSubjectRef struct {
	// Specifies the path where kubernetes auth is enabled
	// default : kubernetes
	// +optional
	Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"`

	// Name of the role
	Name string `json:"name,omitempty" protobuf:"bytes,2,rep,name=name"`

	// Specifies the names of the service account to bind with policy
	ServiceAccountNames []string `json:"serviceAccountNames" protobuf:"bytes,3,rep,name=serviceAccountNames"`

	// Specifies the namespaces of the service account
	ServiceAccountNamespaces []string `json:"serviceAccountNamespaces" protobuf:"bytes,4,rep,name=serviceAccountNamespaces"`

	//Specifies the TTL period of tokens issued using this role in seconds.
	// +optional
	TTL string `json:"ttl,omitempty" protobuf:"bytes,5,opt,name=ttl"`

	//Specifies the maximum allowed lifetime of tokens issued in seconds using this role.
	// +optional
	MaxTTL string `json:"maxTTL,omitempty" protobuf:"bytes,6,opt,name=maxTTL"`

	// If set, indicates that the token generated using this role should never expire.
	// The token should be renewed within the duration specified by this value.
	// At each renewal, the token's TTL will be set to the value of this parameter.
	// +optional
	Period string `json:"period,omitempty" protobuf:"bytes,7,opt,name=period"`
}

More info: https://www.vaultproject.io/api/auth/kubernetes/index.html#create-role

func (*KubernetesSubjectRef) DeepCopy

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

func (*KubernetesSubjectRef) DeepCopyInto

func (in *KubernetesSubjectRef) DeepCopyInto(out *KubernetesSubjectRef)

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

func (*KubernetesSubjectRef) Descriptor

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

func (*KubernetesSubjectRef) Marshal

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

func (*KubernetesSubjectRef) MarshalTo

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

func (*KubernetesSubjectRef) MarshalToSizedBuffer

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

func (*KubernetesSubjectRef) ProtoMessage

func (*KubernetesSubjectRef) ProtoMessage()

func (*KubernetesSubjectRef) Reset

func (m *KubernetesSubjectRef) Reset()

func (*KubernetesSubjectRef) Size

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

func (*KubernetesSubjectRef) String

func (this *KubernetesSubjectRef) String() string

func (*KubernetesSubjectRef) Unmarshal

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

func (*KubernetesSubjectRef) XXX_DiscardUnknown

func (m *KubernetesSubjectRef) XXX_DiscardUnknown()

func (*KubernetesSubjectRef) XXX_Marshal

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

func (*KubernetesSubjectRef) XXX_Merge

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

func (*KubernetesSubjectRef) XXX_Size

func (m *KubernetesSubjectRef) XXX_Size() int

func (*KubernetesSubjectRef) XXX_Unmarshal

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

type LdapGroupSubjectRef

type LdapGroupSubjectRef struct {
	// Specifies the path where ldap groups auth is enabled
	// default : ldap/groups
	// +optional
	Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"`

	// The name of the LDAP group
	Name string `json:"name" protobuf:"bytes,2,opt,name=name"`

	// List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
	Policies []string `json:"policies,omitempty" protobuf:"bytes,3,opt,name=policies"`
}

More info: https://www.vaultproject.io/api-docs/auth/ldap#create-update-ldap-group

func (*LdapGroupSubjectRef) DeepCopy

func (in *LdapGroupSubjectRef) DeepCopy() *LdapGroupSubjectRef

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

func (*LdapGroupSubjectRef) DeepCopyInto

func (in *LdapGroupSubjectRef) DeepCopyInto(out *LdapGroupSubjectRef)

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

func (*LdapGroupSubjectRef) Descriptor

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

func (*LdapGroupSubjectRef) Marshal

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

func (*LdapGroupSubjectRef) MarshalTo

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

func (*LdapGroupSubjectRef) MarshalToSizedBuffer

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

func (*LdapGroupSubjectRef) ProtoMessage

func (*LdapGroupSubjectRef) ProtoMessage()

func (*LdapGroupSubjectRef) Reset

func (m *LdapGroupSubjectRef) Reset()

func (*LdapGroupSubjectRef) Size

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

func (*LdapGroupSubjectRef) String

func (this *LdapGroupSubjectRef) String() string

func (*LdapGroupSubjectRef) Unmarshal

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

func (*LdapGroupSubjectRef) XXX_DiscardUnknown

func (m *LdapGroupSubjectRef) XXX_DiscardUnknown()

func (*LdapGroupSubjectRef) XXX_Marshal

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

func (*LdapGroupSubjectRef) XXX_Merge

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

func (*LdapGroupSubjectRef) XXX_Size

func (m *LdapGroupSubjectRef) XXX_Size() int

func (*LdapGroupSubjectRef) XXX_Unmarshal

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

type LdapUserSubjectRef

type LdapUserSubjectRef struct {
	// Specifies the path where ldap groups auth is enabled
	// default : ldap/users
	// +optional
	Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"`

	// The username of the LDAP user
	Username string `json:"username" protobuf:"bytes,2,opt,name=usernames"`

	// List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
	Policies []string `json:"policies,omitempty" protobuf:"bytes,3,opt,name=policies"`

	// List of groups associated to the user.
	Groups []string `json:"groups,omitempty" protobuf:"bytes,4,opt,name=groups"`
}

More info: https://www.vaultproject.io/api-docs/auth/ldap#create-update-ldap-user

func (*LdapUserSubjectRef) DeepCopy

func (in *LdapUserSubjectRef) DeepCopy() *LdapUserSubjectRef

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

func (*LdapUserSubjectRef) DeepCopyInto

func (in *LdapUserSubjectRef) DeepCopyInto(out *LdapUserSubjectRef)

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

func (*LdapUserSubjectRef) Descriptor

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

func (*LdapUserSubjectRef) Marshal

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

func (*LdapUserSubjectRef) MarshalTo

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

func (*LdapUserSubjectRef) MarshalToSizedBuffer

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

func (*LdapUserSubjectRef) ProtoMessage

func (*LdapUserSubjectRef) ProtoMessage()

func (*LdapUserSubjectRef) Reset

func (m *LdapUserSubjectRef) Reset()

func (*LdapUserSubjectRef) Size

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

func (*LdapUserSubjectRef) String

func (this *LdapUserSubjectRef) String() string

func (*LdapUserSubjectRef) Unmarshal

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

func (*LdapUserSubjectRef) XXX_DiscardUnknown

func (m *LdapUserSubjectRef) XXX_DiscardUnknown()

func (*LdapUserSubjectRef) XXX_Marshal

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

func (*LdapUserSubjectRef) XXX_Merge

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

func (*LdapUserSubjectRef) XXX_Size

func (m *LdapUserSubjectRef) XXX_Size() int

func (*LdapUserSubjectRef) XXX_Unmarshal

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

type PolicyBindingPhase

type PolicyBindingPhase string

+kubebuilder:validation:Enum=Success;Failed

const (
	PolicyBindingSuccess PolicyBindingPhase = "Success"
	PolicyBindingFailed  PolicyBindingPhase = "Failed"
)

type PolicyIdentifier

type PolicyIdentifier struct {
	// Name is a Vault server policy name. This name should be returned by `vault read sys/policy` command.
	// More info: https://www.vaultproject.io/docs/concepts/policies.html#listing-policies
	Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`

	// Ref is name of a VaultPolicy crd object. Actual vault policy name is spec.vaultRoleName field.
	// More info: https://www.vaultproject.io/docs/concepts/policies.html#listing-policies
	Ref string `json:"ref,omitempty" protobuf:"bytes,2,opt,name=ref"`
}

func (*PolicyIdentifier) DeepCopy

func (in *PolicyIdentifier) DeepCopy() *PolicyIdentifier

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

func (*PolicyIdentifier) DeepCopyInto

func (in *PolicyIdentifier) DeepCopyInto(out *PolicyIdentifier)

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

func (*PolicyIdentifier) Descriptor

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

func (*PolicyIdentifier) Marshal

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

func (*PolicyIdentifier) MarshalTo

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

func (*PolicyIdentifier) MarshalToSizedBuffer

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

func (*PolicyIdentifier) ProtoMessage

func (*PolicyIdentifier) ProtoMessage()

func (*PolicyIdentifier) Reset

func (m *PolicyIdentifier) Reset()

func (*PolicyIdentifier) Size

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

func (*PolicyIdentifier) String

func (this *PolicyIdentifier) String() string

func (*PolicyIdentifier) Unmarshal

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

func (*PolicyIdentifier) XXX_DiscardUnknown

func (m *PolicyIdentifier) XXX_DiscardUnknown()

func (*PolicyIdentifier) XXX_Marshal

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

func (*PolicyIdentifier) XXX_Merge

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

func (*PolicyIdentifier) XXX_Size

func (m *PolicyIdentifier) XXX_Size() int

func (*PolicyIdentifier) XXX_Unmarshal

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

type PolicyPhase

type PolicyPhase string

+kubebuilder:validation:Enum=Success;Failed

const (
	PolicySuccess PolicyPhase = "Success"
	PolicyFailed  PolicyPhase = "Failed"
)

type ServiceAccountReference

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

ServiceAccountReference contains name and namespace of the service account

func (*ServiceAccountReference) DeepCopy

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

func (*ServiceAccountReference) DeepCopyInto

func (in *ServiceAccountReference) DeepCopyInto(out *ServiceAccountReference)

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

func (*ServiceAccountReference) Descriptor

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

func (*ServiceAccountReference) Marshal

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

func (*ServiceAccountReference) MarshalTo

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

func (*ServiceAccountReference) MarshalToSizedBuffer

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

func (*ServiceAccountReference) ProtoMessage

func (*ServiceAccountReference) ProtoMessage()

func (*ServiceAccountReference) Reset

func (m *ServiceAccountReference) Reset()

func (*ServiceAccountReference) Size

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

func (*ServiceAccountReference) String

func (this *ServiceAccountReference) String() string

func (*ServiceAccountReference) Unmarshal

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

func (*ServiceAccountReference) XXX_DiscardUnknown

func (m *ServiceAccountReference) XXX_DiscardUnknown()

func (*ServiceAccountReference) XXX_Marshal

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

func (*ServiceAccountReference) XXX_Merge

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

func (*ServiceAccountReference) XXX_Size

func (m *ServiceAccountReference) XXX_Size() int

func (*ServiceAccountReference) XXX_Unmarshal

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

type SubjectRef

type SubjectRef struct {
	// Kubernetes refers to Vault users who are authenticated via Kubernetes auth method
	// More info: https://www.vaultproject.io/docs/auth/kubernetes.html#configuration
	Kubernetes *KubernetesSubjectRef `json:"kubernetes,omitempty" protobuf:"bytes,1,opt,name=kubernetes"`
	// More info: https://www.vaultproject.io/docs/auth/approle#configuration
	AppRole *AppRoleSubjectRef `json:"appRole,omitempty" protobuf:"bytes,2,opt,name=appRole"`
	// More info: https://www.vaultproject.io/api-docs/auth/ldap#configure-ldap
	LdapGroup *LdapGroupSubjectRef `json:"ldapGroup,omitempty" protobuf:"bytes,3,opt,name=ldapGroup"`
	LdapUser  *LdapUserSubjectRef  `json:"ldapUser,omitempty" protobuf:"bytes,4,opt,name=ldapUser"`
	// More info: https://www.vaultproject.io/api-docs/auth/jwt#configure
	JWT *JWTSubjectRef `json:"jwt,omitempty" protobuf:"bytes,5,opt,name=jwt"`
}

func (*SubjectRef) DeepCopy

func (in *SubjectRef) DeepCopy() *SubjectRef

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

func (*SubjectRef) DeepCopyInto

func (in *SubjectRef) DeepCopyInto(out *SubjectRef)

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

func (*SubjectRef) Descriptor

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

func (*SubjectRef) Marshal

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

func (*SubjectRef) MarshalTo

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

func (*SubjectRef) MarshalToSizedBuffer

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

func (*SubjectRef) ProtoMessage

func (*SubjectRef) ProtoMessage()

func (*SubjectRef) Reset

func (m *SubjectRef) Reset()

func (*SubjectRef) Size

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

func (*SubjectRef) String

func (this *SubjectRef) String() string

func (*SubjectRef) Unmarshal

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

func (*SubjectRef) XXX_DiscardUnknown

func (m *SubjectRef) XXX_DiscardUnknown()

func (*SubjectRef) XXX_Marshal

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

func (*SubjectRef) XXX_Merge

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

func (*SubjectRef) XXX_Size

func (m *SubjectRef) XXX_Size() int

func (*SubjectRef) XXX_Unmarshal

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

type VaultPolicy

type VaultPolicy struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Spec              VaultPolicySpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status            VaultPolicyStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=vaultpolicies,singular=vaultpolicy,shortName=vp,categories={vault,policy,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (VaultPolicy) CustomResourceDefinition

func (_ VaultPolicy) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*VaultPolicy) DeepCopy

func (in *VaultPolicy) DeepCopy() *VaultPolicy

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

func (*VaultPolicy) DeepCopyInto

func (in *VaultPolicy) DeepCopyInto(out *VaultPolicy)

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

func (*VaultPolicy) DeepCopyObject

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

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

func (*VaultPolicy) Descriptor

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

func (VaultPolicy) GetKey

func (v VaultPolicy) GetKey() string

func (VaultPolicy) IsValid

func (v VaultPolicy) IsValid() error

func (*VaultPolicy) Marshal

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

func (*VaultPolicy) MarshalTo

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

func (*VaultPolicy) MarshalToSizedBuffer

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

func (VaultPolicy) OffshootLabels

func (v VaultPolicy) OffshootLabels() map[string]string

func (VaultPolicy) OffshootSelectors

func (v VaultPolicy) OffshootSelectors() map[string]string

func (VaultPolicy) PolicyName

func (v VaultPolicy) PolicyName() string

func (*VaultPolicy) ProtoMessage

func (*VaultPolicy) ProtoMessage()

func (*VaultPolicy) Reset

func (m *VaultPolicy) Reset()

func (*VaultPolicy) Size

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

func (*VaultPolicy) String

func (this *VaultPolicy) String() string

func (*VaultPolicy) Unmarshal

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

func (*VaultPolicy) XXX_DiscardUnknown

func (m *VaultPolicy) XXX_DiscardUnknown()

func (*VaultPolicy) XXX_Marshal

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

func (*VaultPolicy) XXX_Merge

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

func (*VaultPolicy) XXX_Size

func (m *VaultPolicy) XXX_Size() int

func (*VaultPolicy) XXX_Unmarshal

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

type VaultPolicyBinding

type VaultPolicyBinding struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Spec              VaultPolicyBindingSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status            VaultPolicyBindingStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=vaultpolicybindings,singular=vaultpolicybinding,shortName=vpb,categories={vault,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (VaultPolicyBinding) CustomResourceDefinition

func (_ VaultPolicyBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*VaultPolicyBinding) DeepCopy

func (in *VaultPolicyBinding) DeepCopy() *VaultPolicyBinding

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

func (*VaultPolicyBinding) DeepCopyInto

func (in *VaultPolicyBinding) DeepCopyInto(out *VaultPolicyBinding)

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

func (*VaultPolicyBinding) DeepCopyObject

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

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

func (*VaultPolicyBinding) Descriptor

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

func (VaultPolicyBinding) GeneratePath

func (v VaultPolicyBinding) GeneratePath(name, path, subPath string) string

func (VaultPolicyBinding) GeneratePayload

func (v VaultPolicyBinding) GeneratePayload(i interface{}) (map[string]interface{}, error)

func (VaultPolicyBinding) GetKey

func (v VaultPolicyBinding) GetKey() string

func (VaultPolicyBinding) IsValid

func (v VaultPolicyBinding) IsValid() error

func (*VaultPolicyBinding) Marshal

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

func (*VaultPolicyBinding) MarshalTo

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

func (*VaultPolicyBinding) MarshalToSizedBuffer

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

func (VaultPolicyBinding) OffshootLabels

func (v VaultPolicyBinding) OffshootLabels() map[string]string

func (VaultPolicyBinding) OffshootSelectors

func (v VaultPolicyBinding) OffshootSelectors() map[string]string

func (VaultPolicyBinding) PolicyBindingName

func (v VaultPolicyBinding) PolicyBindingName() string

func (*VaultPolicyBinding) ProtoMessage

func (*VaultPolicyBinding) ProtoMessage()

func (*VaultPolicyBinding) Reset

func (m *VaultPolicyBinding) Reset()

func (*VaultPolicyBinding) SetDefaults

func (v *VaultPolicyBinding) SetDefaults()

func (*VaultPolicyBinding) Size

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

func (*VaultPolicyBinding) String

func (this *VaultPolicyBinding) String() string

func (*VaultPolicyBinding) Unmarshal

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

func (*VaultPolicyBinding) XXX_DiscardUnknown

func (m *VaultPolicyBinding) XXX_DiscardUnknown()

func (*VaultPolicyBinding) XXX_Marshal

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

func (*VaultPolicyBinding) XXX_Merge

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

func (*VaultPolicyBinding) XXX_Size

func (m *VaultPolicyBinding) XXX_Size() int

func (*VaultPolicyBinding) XXX_Unmarshal

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

type VaultPolicyBindingList

type VaultPolicyBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []VaultPolicyBinding `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

func (*VaultPolicyBindingList) DeepCopy

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

func (*VaultPolicyBindingList) DeepCopyInto

func (in *VaultPolicyBindingList) DeepCopyInto(out *VaultPolicyBindingList)

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

func (*VaultPolicyBindingList) DeepCopyObject

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

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

func (*VaultPolicyBindingList) Descriptor

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

func (*VaultPolicyBindingList) Marshal

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

func (*VaultPolicyBindingList) MarshalTo

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

func (*VaultPolicyBindingList) MarshalToSizedBuffer

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

func (*VaultPolicyBindingList) ProtoMessage

func (*VaultPolicyBindingList) ProtoMessage()

func (*VaultPolicyBindingList) Reset

func (m *VaultPolicyBindingList) Reset()

func (*VaultPolicyBindingList) Size

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

func (*VaultPolicyBindingList) String

func (this *VaultPolicyBindingList) String() string

func (*VaultPolicyBindingList) Unmarshal

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

func (*VaultPolicyBindingList) XXX_DiscardUnknown

func (m *VaultPolicyBindingList) XXX_DiscardUnknown()

func (*VaultPolicyBindingList) XXX_Marshal

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

func (*VaultPolicyBindingList) XXX_Merge

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

func (*VaultPolicyBindingList) XXX_Size

func (m *VaultPolicyBindingList) XXX_Size() int

func (*VaultPolicyBindingList) XXX_Unmarshal

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

type VaultPolicyBindingSpec

type VaultPolicyBindingSpec struct {
	// VaultRef is the name of a AppBinding referencing to a Vault Server
	VaultRef core.LocalObjectReference `json:"vaultRef" protobuf:"bytes,1,opt,name=vaultRef"`

	// VaultRoleName is the role name which will be bound of the policies
	// This defaults to following format: k8s.${cluster}.${metadata.namespace}.${metadata.name}
	// xref: https://www.vaultproject.io/api/auth/kubernetes/index.html#create-role
	// +optional
	VaultRoleName string `json:"vaultRoleName,omitempty" protobuf:"bytes,2,opt,name=vaultRoleName"`

	// Policies is a list of Vault policy identifiers.
	Policies []PolicyIdentifier `json:"policies" protobuf:"bytes,3,rep,name=policies"`

	// SubjectRef refers to Vault users who will be granted policies.
	SubjectRef `json:"subjectRef" protobuf:"bytes,4,opt,name=subjectRef"`
}

links: https://www.vaultproject.io/api/auth/kubernetes/index.html#parameters-1

func (*VaultPolicyBindingSpec) DeepCopy

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

func (*VaultPolicyBindingSpec) DeepCopyInto

func (in *VaultPolicyBindingSpec) DeepCopyInto(out *VaultPolicyBindingSpec)

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

func (*VaultPolicyBindingSpec) Descriptor

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

func (*VaultPolicyBindingSpec) Marshal

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

func (*VaultPolicyBindingSpec) MarshalTo

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

func (*VaultPolicyBindingSpec) MarshalToSizedBuffer

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

func (*VaultPolicyBindingSpec) ProtoMessage

func (*VaultPolicyBindingSpec) ProtoMessage()

func (*VaultPolicyBindingSpec) Reset

func (m *VaultPolicyBindingSpec) Reset()

func (*VaultPolicyBindingSpec) Size

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

func (*VaultPolicyBindingSpec) String

func (this *VaultPolicyBindingSpec) String() string

func (*VaultPolicyBindingSpec) Unmarshal

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

func (*VaultPolicyBindingSpec) XXX_DiscardUnknown

func (m *VaultPolicyBindingSpec) XXX_DiscardUnknown()

func (*VaultPolicyBindingSpec) XXX_Marshal

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

func (*VaultPolicyBindingSpec) XXX_Merge

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

func (*VaultPolicyBindingSpec) XXX_Size

func (m *VaultPolicyBindingSpec) XXX_Size() int

func (*VaultPolicyBindingSpec) XXX_Unmarshal

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

type VaultPolicyBindingStatus

type VaultPolicyBindingStatus struct {
	// ObservedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"`

	// Phase indicates whether successfully bind the policy to service account in vault or not or in progress
	// +optional
	Phase PolicyBindingPhase `json:"phase,omitempty" protobuf:"bytes,2,opt,name=phase,casttype=PolicyBindingPhase"`

	// Represents the latest available observations of a VaultPolicyBinding.
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty" protobuf:"bytes,3,rep,name=conditions"`
}

func (*VaultPolicyBindingStatus) DeepCopy

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

func (*VaultPolicyBindingStatus) DeepCopyInto

func (in *VaultPolicyBindingStatus) DeepCopyInto(out *VaultPolicyBindingStatus)

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

func (*VaultPolicyBindingStatus) Descriptor

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

func (*VaultPolicyBindingStatus) Marshal

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

func (*VaultPolicyBindingStatus) MarshalTo

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

func (*VaultPolicyBindingStatus) MarshalToSizedBuffer

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

func (*VaultPolicyBindingStatus) ProtoMessage

func (*VaultPolicyBindingStatus) ProtoMessage()

func (*VaultPolicyBindingStatus) Reset

func (m *VaultPolicyBindingStatus) Reset()

func (*VaultPolicyBindingStatus) Size

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

func (*VaultPolicyBindingStatus) String

func (this *VaultPolicyBindingStatus) String() string

func (*VaultPolicyBindingStatus) Unmarshal

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

func (*VaultPolicyBindingStatus) XXX_DiscardUnknown

func (m *VaultPolicyBindingStatus) XXX_DiscardUnknown()

func (*VaultPolicyBindingStatus) XXX_Marshal

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

func (*VaultPolicyBindingStatus) XXX_Merge

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

func (*VaultPolicyBindingStatus) XXX_Size

func (m *VaultPolicyBindingStatus) XXX_Size() int

func (*VaultPolicyBindingStatus) XXX_Unmarshal

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

type VaultPolicyList

type VaultPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []VaultPolicy `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

func (*VaultPolicyList) DeepCopy

func (in *VaultPolicyList) DeepCopy() *VaultPolicyList

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

func (*VaultPolicyList) DeepCopyInto

func (in *VaultPolicyList) DeepCopyInto(out *VaultPolicyList)

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

func (*VaultPolicyList) DeepCopyObject

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

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

func (*VaultPolicyList) Descriptor

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

func (*VaultPolicyList) Marshal

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

func (*VaultPolicyList) MarshalTo

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

func (*VaultPolicyList) MarshalToSizedBuffer

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

func (*VaultPolicyList) ProtoMessage

func (*VaultPolicyList) ProtoMessage()

func (*VaultPolicyList) Reset

func (m *VaultPolicyList) Reset()

func (*VaultPolicyList) Size

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

func (*VaultPolicyList) String

func (this *VaultPolicyList) String() string

func (*VaultPolicyList) Unmarshal

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

func (*VaultPolicyList) XXX_DiscardUnknown

func (m *VaultPolicyList) XXX_DiscardUnknown()

func (*VaultPolicyList) XXX_Marshal

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

func (*VaultPolicyList) XXX_Merge

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

func (*VaultPolicyList) XXX_Size

func (m *VaultPolicyList) XXX_Size() int

func (*VaultPolicyList) XXX_Unmarshal

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

type VaultPolicySpec

type VaultPolicySpec struct {
	// VaultRef is the name of a AppBinding referencing to a Vault Server
	VaultRef core.LocalObjectReference `json:"vaultRef" protobuf:"bytes,1,opt,name=vaultRef"`

	// VaultPolicyName is the policy name set inside Vault.
	// This defaults to following format: k8s.${cluster}.${metadata.namespace}.${metadata.name}
	// +optional
	VaultPolicyName string `json:"vaultPolicyName,omitempty" protobuf:"bytes,2,opt,name=vaultPolicyName"`

	// PolicyDocument specifies a vault policy in hcl format.
	// For example:
	// path "secret/*" {
	//   capabilities = ["create", "read", "update", "delete", "list"]
	// }
	// +optional
	PolicyDocument string `json:"policyDocument,omitempty" protobuf:"bytes,3,opt,name=policyDocument"`

	// Policy specifies a vault policy in json format.
	// +optional
	// +kubebuilder:validation:EmbeddedResource
	// +kubebuilder:pruning:PreserveUnknownFields
	Policy *runtime.RawExtension `json:"policy,omitempty" protobuf:"bytes,4,opt,name=policy"`
}

More info: https://www.vaultproject.io/docs/concepts/policies.html

func (*VaultPolicySpec) DeepCopy

func (in *VaultPolicySpec) DeepCopy() *VaultPolicySpec

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

func (*VaultPolicySpec) DeepCopyInto

func (in *VaultPolicySpec) DeepCopyInto(out *VaultPolicySpec)

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

func (*VaultPolicySpec) Descriptor

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

func (*VaultPolicySpec) Marshal

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

func (*VaultPolicySpec) MarshalTo

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

func (*VaultPolicySpec) MarshalToSizedBuffer

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

func (*VaultPolicySpec) ProtoMessage

func (*VaultPolicySpec) ProtoMessage()

func (*VaultPolicySpec) Reset

func (m *VaultPolicySpec) Reset()

func (*VaultPolicySpec) Size

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

func (*VaultPolicySpec) String

func (this *VaultPolicySpec) String() string

func (*VaultPolicySpec) Unmarshal

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

func (*VaultPolicySpec) XXX_DiscardUnknown

func (m *VaultPolicySpec) XXX_DiscardUnknown()

func (*VaultPolicySpec) XXX_Marshal

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

func (*VaultPolicySpec) XXX_Merge

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

func (*VaultPolicySpec) XXX_Size

func (m *VaultPolicySpec) XXX_Size() int

func (*VaultPolicySpec) XXX_Unmarshal

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

type VaultPolicyStatus

type VaultPolicyStatus struct {
	// ObservedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"`

	// Phase indicates whether the policy successfully applied in vault or not or in progress
	// +optional
	Phase PolicyPhase `json:"phase,omitempty" protobuf:"bytes,2,opt,name=phase,casttype=PolicyPhase"`

	// Represents the latest available observations of a VaultPolicy.
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty" protobuf:"bytes,3,rep,name=conditions"`
}

func (*VaultPolicyStatus) DeepCopy

func (in *VaultPolicyStatus) DeepCopy() *VaultPolicyStatus

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

func (*VaultPolicyStatus) DeepCopyInto

func (in *VaultPolicyStatus) DeepCopyInto(out *VaultPolicyStatus)

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

func (*VaultPolicyStatus) Descriptor

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

func (*VaultPolicyStatus) Marshal

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

func (*VaultPolicyStatus) MarshalTo

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

func (*VaultPolicyStatus) MarshalToSizedBuffer

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

func (*VaultPolicyStatus) ProtoMessage

func (*VaultPolicyStatus) ProtoMessage()

func (*VaultPolicyStatus) Reset

func (m *VaultPolicyStatus) Reset()

func (*VaultPolicyStatus) Size

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

func (*VaultPolicyStatus) String

func (this *VaultPolicyStatus) String() string

func (*VaultPolicyStatus) Unmarshal

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

func (*VaultPolicyStatus) XXX_DiscardUnknown

func (m *VaultPolicyStatus) XXX_DiscardUnknown()

func (*VaultPolicyStatus) XXX_Marshal

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

func (*VaultPolicyStatus) XXX_Merge

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

func (*VaultPolicyStatus) XXX_Size

func (m *VaultPolicyStatus) XXX_Size() int

func (*VaultPolicyStatus) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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