v1alpha1

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CertificateRequestConditionReadyBlank          = diemetav1.ConditionBlank.Type(string(certmanagerv1.CertificateRequestConditionReady))
	CertificateRequestConditionInvalidRequestBlank = diemetav1.ConditionBlank.Type(string(certmanagerv1.CertificateRequestConditionInvalidRequest))
	CertificateRequestConditionApprovedBlank       = diemetav1.ConditionBlank.Type(string(certmanagerv1.CertificateRequestConditionApproved))
	CertificateRequestConditionDeniedBlank         = diemetav1.ConditionBlank.Type(string(certmanagerv1.CertificateRequestConditionDenied))
)
View Source
var CertificateRequestBlank = (&CertificateRequestDie{}).DieFeed(v1.CertificateRequest{})
View Source
var CertificateRequestSpecBlank = (&CertificateRequestSpecDie{}).DieFeed(v1.CertificateRequestSpec{})
View Source
var CertificateRequestStatusBlank = (&CertificateRequestStatusDie{}).DieFeed(v1.CertificateRequestStatus{})

Functions

This section is empty.

Types

type CertificateRequestDie

type CertificateRequestDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*CertificateRequestDie) APIVersion added in v0.2.0

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*CertificateRequestDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CertificateRequestDie) DeepCopyObject

func (d *CertificateRequestDie) DeepCopyObject() runtime.Object

func (*CertificateRequestDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CertificateRequestDie) DieFeedJSON added in v0.5.0

func (d *CertificateRequestDie) DieFeedJSON(j []byte) *CertificateRequestDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CertificateRequestDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CertificateRequestDie) DieFeedRawExtension added in v0.2.0

func (d *CertificateRequestDie) DieFeedRawExtension(raw runtime.RawExtension) *CertificateRequestDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CertificateRequestDie) DieFeedYAML added in v0.5.0

func (d *CertificateRequestDie) DieFeedYAML(y []byte) *CertificateRequestDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CertificateRequestDie) DieFeedYAMLFile added in v0.5.0

func (d *CertificateRequestDie) DieFeedYAMLFile(name string) *CertificateRequestDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CertificateRequestDie) DieImmutable

func (d *CertificateRequestDie) DieImmutable(immutable bool) *CertificateRequestDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CertificateRequestDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CertificateRequestDie) DieReleaseJSON added in v0.5.0

func (d *CertificateRequestDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CertificateRequestDie) DieReleasePtr

func (d *CertificateRequestDie) DieReleasePtr() *v1.CertificateRequest

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CertificateRequestDie) DieReleaseRawExtension added in v0.2.0

func (d *CertificateRequestDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CertificateRequestDie) DieReleaseUnstructured

func (d *CertificateRequestDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*CertificateRequestDie) DieReleaseYAML added in v0.5.0

func (d *CertificateRequestDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CertificateRequestDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CertificateRequestDie) DieStampAt added in v0.5.0

func (d *CertificateRequestDie) DieStampAt(jp string, fn interface{}) *CertificateRequestDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CertificateRequestDie) DieWith added in v0.6.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CertificateRequestDie) GetObjectKind

func (d *CertificateRequestDie) GetObjectKind() schema.ObjectKind

func (*CertificateRequestDie) Kind added in v0.2.0

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*CertificateRequestDie) MarshalJSON

func (d *CertificateRequestDie) MarshalJSON() ([]byte, error)

func (*CertificateRequestDie) MetadataDie

func (d *CertificateRequestDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CertificateRequestDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*CertificateRequestDie) Spec

Desired state of the CertificateRequest resource.

func (*CertificateRequestDie) SpecDie

SpecDie stamps the resource's spec field with a mutable die.

func (*CertificateRequestDie) Status

Status of the CertificateRequest. This is set and managed automatically.

func (*CertificateRequestDie) StatusDie

StatusDie stamps the resource's status field with a mutable die.

func (*CertificateRequestDie) UnmarshalJSON

func (d *CertificateRequestDie) UnmarshalJSON(b []byte) error

type CertificateRequestSpecDie

type CertificateRequestSpecDie struct {
	// contains filtered or unexported fields
}

func (*CertificateRequestSpecDie) AddExtra

func (*CertificateRequestSpecDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CertificateRequestSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CertificateRequestSpecDie) DieFeedJSON added in v0.5.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CertificateRequestSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CertificateRequestSpecDie) DieFeedRawExtension added in v0.2.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CertificateRequestSpecDie) DieFeedYAML added in v0.5.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CertificateRequestSpecDie) DieFeedYAMLFile added in v0.5.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CertificateRequestSpecDie) DieImmutable

func (d *CertificateRequestSpecDie) DieImmutable(immutable bool) *CertificateRequestSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CertificateRequestSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CertificateRequestSpecDie) DieReleaseJSON added in v0.5.0

func (d *CertificateRequestSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CertificateRequestSpecDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CertificateRequestSpecDie) DieReleaseRawExtension added in v0.2.0

func (d *CertificateRequestSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CertificateRequestSpecDie) DieReleaseYAML added in v0.5.0

func (d *CertificateRequestSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CertificateRequestSpecDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CertificateRequestSpecDie) DieStampAt added in v0.5.0

func (d *CertificateRequestSpecDie) DieStampAt(jp string, fn interface{}) *CertificateRequestSpecDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CertificateRequestSpecDie) DieWith added in v0.6.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CertificateRequestSpecDie) Duration

The requested 'duration' (i.e. lifetime) of the Certificate.

This option may be ignored/overridden by some issuer types.

func (*CertificateRequestSpecDie) Extra

Extra contains extra attributes of the user that created the CertificateRequest.

Populated by the cert-manager webhook on creation and immutable.

func (*CertificateRequestSpecDie) Groups

Groups contains group membership of the user that created the CertificateRequest.

Populated by the cert-manager webhook on creation and immutable.

func (*CertificateRequestSpecDie) IsCA

IsCA will request to mark the certificate as valid for certificate signing

when submitting to the issuer.

This will automatically add the `cert sign` usage to the list of `usages`.

func (*CertificateRequestSpecDie) IssuerRef

IssuerRef is a reference to the issuer for this CertificateRequest. If

the `kind` field is not set, or set to `Issuer`, an Issuer resource with

the given name in the same namespace as the CertificateRequest will be

used. If the `kind` field is set to `ClusterIssuer`, a ClusterIssuer with

the provided name will be used. The `name` field in this stanza is

required at all times. The group field refers to the API group of the

issuer which defaults to `cert-manager.io` if empty.

func (*CertificateRequestSpecDie) IssuerRefDie

func (*CertificateRequestSpecDie) Request

The PEM-encoded x509 certificate signing request to be submitted to the

CA for signing.

func (*CertificateRequestSpecDie) UID

UID contains the uid of the user that created the CertificateRequest.

Populated by the cert-manager webhook on creation and immutable.

func (*CertificateRequestSpecDie) Usages

Usages is the set of x509 usages that are requested for the certificate.

If usages are set they SHOULD be encoded inside the CSR spec

Defaults to `digital signature` and `key encipherment` if not specified.

func (*CertificateRequestSpecDie) Username

Username contains the name of the user that created the CertificateRequest.

Populated by the cert-manager webhook on creation and immutable.

type CertificateRequestStatusDie

type CertificateRequestStatusDie struct {
	// contains filtered or unexported fields
}

func (*CertificateRequestStatusDie) CA

The PEM encoded x509 certificate of the signer, also known as the CA

(Certificate Authority).

This is set on a best-effort basis by different issuers.

If not set, the CA is assumed to be unknown/not available.

func (*CertificateRequestStatusDie) Certificate

The PEM encoded x509 certificate resulting from the certificate

signing request.

If not set, the CertificateRequest has either not been completed or has

failed. More information on failure can be found by checking the

`conditions` field.

func (*CertificateRequestStatusDie) Conditions

List of status conditions to indicate the status of a CertificateRequest.

Known condition types are `Ready` and `InvalidRequest`.

func (*CertificateRequestStatusDie) ConditionsDie

func (*CertificateRequestStatusDie) DeepCopy

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*CertificateRequestStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*CertificateRequestStatusDie) DieFeedJSON added in v0.5.0

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*CertificateRequestStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*CertificateRequestStatusDie) DieFeedRawExtension added in v0.2.0

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CertificateRequestStatusDie) DieFeedYAML added in v0.5.0

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*CertificateRequestStatusDie) DieFeedYAMLFile added in v0.5.0

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*CertificateRequestStatusDie) DieImmutable

func (d *CertificateRequestStatusDie) DieImmutable(immutable bool) *CertificateRequestStatusDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*CertificateRequestStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*CertificateRequestStatusDie) DieReleaseJSON added in v0.5.0

func (d *CertificateRequestStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*CertificateRequestStatusDie) DieReleasePtr

DieReleasePtr returns a pointer to the resource managed by the die.

func (*CertificateRequestStatusDie) DieReleaseRawExtension added in v0.2.0

func (d *CertificateRequestStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*CertificateRequestStatusDie) DieReleaseYAML added in v0.5.0

func (d *CertificateRequestStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*CertificateRequestStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*CertificateRequestStatusDie) DieStampAt added in v0.5.0

func (d *CertificateRequestStatusDie) DieStampAt(jp string, fn interface{}) *CertificateRequestStatusDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*CertificateRequestStatusDie) DieWith added in v0.6.0

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*CertificateRequestStatusDie) FailureTime

FailureTime stores the time that this CertificateRequest failed. This is

used to influence garbage collection and back-off.

Jump to

Keyboard shortcuts

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