Documentation
¶
Overview ¶
+kubebuilder:object:generate=true +groupName=security.artifactory.jfrog.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Keypair
- func (in *Keypair) DeepCopy() *Keypair
- func (in *Keypair) DeepCopyInto(out *Keypair)
- func (in *Keypair) DeepCopyObject() runtime.Object
- func (mg *Keypair) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Keypair) GetConnectionDetailsMapping() map[string]string
- func (mg *Keypair) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Keypair) GetID() string
- func (tr *Keypair) GetInitParameters() (map[string]any, error)
- func (mg *Keypair) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Keypair) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Keypair) GetObservation() (map[string]any, error)
- func (tr *Keypair) GetParameters() (map[string]any, error)
- func (mg *Keypair) GetProviderConfigReference() *xpv1.Reference
- func (mg *Keypair) GetTerraformResourceType() string
- func (tr *Keypair) GetTerraformSchemaVersion() int
- func (mg *Keypair) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Keypair) Hub()
- func (tr *Keypair) LateInitialize(attrs []byte) (bool, error)
- func (mg *Keypair) SetConditions(c ...xpv1.Condition)
- func (mg *Keypair) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Keypair) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Keypair) SetObservation(obs map[string]any) error
- func (tr *Keypair) SetParameters(params map[string]any) error
- func (mg *Keypair) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Keypair) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type KeypairInitParameters
- type KeypairList
- type KeypairObservation
- type KeypairParameters
- type KeypairSpec
- type KeypairStatus
- type ScopedToken
- func (in *ScopedToken) DeepCopy() *ScopedToken
- func (in *ScopedToken) DeepCopyInto(out *ScopedToken)
- func (in *ScopedToken) DeepCopyObject() runtime.Object
- func (mg *ScopedToken) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *ScopedToken) GetConnectionDetailsMapping() map[string]string
- func (mg *ScopedToken) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *ScopedToken) GetID() string
- func (tr *ScopedToken) GetInitParameters() (map[string]any, error)
- func (mg *ScopedToken) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *ScopedToken) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *ScopedToken) GetObservation() (map[string]any, error)
- func (tr *ScopedToken) GetParameters() (map[string]any, error)
- func (mg *ScopedToken) GetProviderConfigReference() *xpv1.Reference
- func (mg *ScopedToken) GetTerraformResourceType() string
- func (tr *ScopedToken) GetTerraformSchemaVersion() int
- func (mg *ScopedToken) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *ScopedToken) Hub()
- func (tr *ScopedToken) LateInitialize(attrs []byte) (bool, error)
- func (mg *ScopedToken) SetConditions(c ...xpv1.Condition)
- func (mg *ScopedToken) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *ScopedToken) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *ScopedToken) SetObservation(obs map[string]any) error
- func (tr *ScopedToken) SetParameters(params map[string]any) error
- func (mg *ScopedToken) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *ScopedToken) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ScopedTokenInitParameters
- type ScopedTokenList
- type ScopedTokenObservation
- type ScopedTokenParameters
- type ScopedTokenSpec
- type ScopedTokenStatus
Constants ¶
const ( CRDGroup = "security.artifactory.jfrog.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // CRDGroupVersion is the API Group Version used to register the objects CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( Keypair_Kind = "Keypair" Keypair_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Keypair_Kind}.String() Keypair_KindAPIVersion = Keypair_Kind + "." + CRDGroupVersion.String() Keypair_GroupVersionKind = CRDGroupVersion.WithKind(Keypair_Kind) )
Repository type metadata.
var ( ScopedToken_Kind = "ScopedToken" ScopedToken_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ScopedToken_Kind}.String() ScopedToken_KindAPIVersion = ScopedToken_Kind + "." + CRDGroupVersion.String() ScopedToken_GroupVersionKind = CRDGroupVersion.WithKind(ScopedToken_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Keypair ¶
type Keypair struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.alias) || (has(self.initProvider) && has(self.initProvider.alias))",message="spec.forProvider.alias is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.pairType) || (has(self.initProvider) && has(self.initProvider.pairType))",message="spec.forProvider.pairType is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.privateKeySecretRef)",message="spec.forProvider.privateKeySecretRef is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.publicKey) || (has(self.initProvider) && has(self.initProvider.publicKey))",message="spec.forProvider.publicKey is a required parameter"
Spec KeypairSpec `json:"spec"`
Status KeypairStatus `json:"status,omitempty"`
}
Keypair is the Schema for the Keypairs API. <no value> +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,artifactory}
func (*Keypair) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Keypair.
func (*Keypair) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Keypair) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Keypair) GetCondition ¶
func (mg *Keypair) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Keypair.
func (*Keypair) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Keypair
func (*Keypair) GetDeletionPolicy ¶
func (mg *Keypair) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Keypair.
func (*Keypair) GetInitParameters ¶
GetInitParameters of this Keypair
func (*Keypair) GetManagementPolicies ¶
func (mg *Keypair) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Keypair.
func (*Keypair) GetMergedParameters ¶
GetInitParameters of this Keypair
func (*Keypair) GetObservation ¶
GetObservation of this Keypair
func (*Keypair) GetParameters ¶
GetParameters of this Keypair
func (*Keypair) GetProviderConfigReference ¶
GetProviderConfigReference of this Keypair.
func (*Keypair) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Keypair
func (*Keypair) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Keypair) GetWriteConnectionSecretToReference ¶
func (mg *Keypair) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Keypair.
func (*Keypair) LateInitialize ¶
LateInitialize this Keypair using its observed tfState. returns True if there are any spec changes for the resource.
func (*Keypair) SetConditions ¶
SetConditions of this Keypair.
func (*Keypair) SetDeletionPolicy ¶
func (mg *Keypair) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Keypair.
func (*Keypair) SetManagementPolicies ¶
func (mg *Keypair) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Keypair.
func (*Keypair) SetObservation ¶
SetObservation for this Keypair
func (*Keypair) SetParameters ¶
SetParameters for this Keypair
func (*Keypair) SetProviderConfigReference ¶
SetProviderConfigReference of this Keypair.
func (*Keypair) SetWriteConnectionSecretToReference ¶
func (mg *Keypair) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Keypair.
type KeypairInitParameters ¶
type KeypairInitParameters struct {
// Will be used as a filename when retrieving the public key via REST API
Alias *string `json:"alias,omitempty" tf:"alias,omitempty"`
// Key Pair type. Supported types - GPG and RSA.
PairType *string `json:"pairType,omitempty" tf:"pair_type,omitempty"`
// Passphrase will be used to decrypt the private key. Validated server side.
PassphraseSecretRef *v1.SecretKeySelector `json:"passphraseSecretRef,omitempty" tf:"-"`
// Private key. PEM format will be validated. Must not include extranous spaces or tabs.
PrivateKeySecretRef v1.SecretKeySelector `json:"privateKeySecretRef" tf:"-"`
// Public key. PEM format will be validated. Must not include extranous spaces or tabs.
PublicKey *string `json:"publicKey,omitempty" tf:"public_key,omitempty"`
}
func (*KeypairInitParameters) DeepCopy ¶
func (in *KeypairInitParameters) DeepCopy() *KeypairInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeypairInitParameters.
func (*KeypairInitParameters) DeepCopyInto ¶
func (in *KeypairInitParameters) DeepCopyInto(out *KeypairInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeypairList ¶
type KeypairList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Keypair `json:"items"`
}
KeypairList contains a list of Keypairs
func (*KeypairList) DeepCopy ¶
func (in *KeypairList) DeepCopy() *KeypairList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeypairList.
func (*KeypairList) DeepCopyInto ¶
func (in *KeypairList) DeepCopyInto(out *KeypairList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KeypairList) DeepCopyObject ¶
func (in *KeypairList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KeypairList) GetItems ¶
func (l *KeypairList) GetItems() []resource.Managed
GetItems of this KeypairList.
type KeypairObservation ¶
type KeypairObservation struct {
// Will be used as a filename when retrieving the public key via REST API
Alias *string `json:"alias,omitempty" tf:"alias,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Key Pair type. Supported types - GPG and RSA.
PairType *string `json:"pairType,omitempty" tf:"pair_type,omitempty"`
// Public key. PEM format will be validated. Must not include extranous spaces or tabs.
PublicKey *string `json:"publicKey,omitempty" tf:"public_key,omitempty"`
}
func (*KeypairObservation) DeepCopy ¶
func (in *KeypairObservation) DeepCopy() *KeypairObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeypairObservation.
func (*KeypairObservation) DeepCopyInto ¶
func (in *KeypairObservation) DeepCopyInto(out *KeypairObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeypairParameters ¶
type KeypairParameters struct {
// Will be used as a filename when retrieving the public key via REST API
// +kubebuilder:validation:Optional
Alias *string `json:"alias,omitempty" tf:"alias,omitempty"`
// Key Pair type. Supported types - GPG and RSA.
// +kubebuilder:validation:Optional
PairType *string `json:"pairType,omitempty" tf:"pair_type,omitempty"`
// Passphrase will be used to decrypt the private key. Validated server side.
// +kubebuilder:validation:Optional
PassphraseSecretRef *v1.SecretKeySelector `json:"passphraseSecretRef,omitempty" tf:"-"`
// Private key. PEM format will be validated. Must not include extranous spaces or tabs.
// +kubebuilder:validation:Optional
PrivateKeySecretRef v1.SecretKeySelector `json:"privateKeySecretRef" tf:"-"`
// Public key. PEM format will be validated. Must not include extranous spaces or tabs.
// +kubebuilder:validation:Optional
PublicKey *string `json:"publicKey,omitempty" tf:"public_key,omitempty"`
}
func (*KeypairParameters) DeepCopy ¶
func (in *KeypairParameters) DeepCopy() *KeypairParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeypairParameters.
func (*KeypairParameters) DeepCopyInto ¶
func (in *KeypairParameters) DeepCopyInto(out *KeypairParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeypairSpec ¶
type KeypairSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider KeypairParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider KeypairInitParameters `json:"initProvider,omitempty"`
}
KeypairSpec defines the desired state of Keypair
func (*KeypairSpec) DeepCopy ¶
func (in *KeypairSpec) DeepCopy() *KeypairSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeypairSpec.
func (*KeypairSpec) DeepCopyInto ¶
func (in *KeypairSpec) DeepCopyInto(out *KeypairSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeypairStatus ¶
type KeypairStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider KeypairObservation `json:"atProvider,omitempty"`
}
KeypairStatus defines the observed state of Keypair.
func (*KeypairStatus) DeepCopy ¶
func (in *KeypairStatus) DeepCopy() *KeypairStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeypairStatus.
func (*KeypairStatus) DeepCopyInto ¶
func (in *KeypairStatus) DeepCopyInto(out *KeypairStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScopedToken ¶ added in v0.9.0
type ScopedToken struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ScopedTokenSpec `json:"spec"`
Status ScopedTokenStatus `json:"status,omitempty"`
}
ScopedToken is the Schema for the ScopedTokens API. "" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,artifactory}
func (*ScopedToken) DeepCopy ¶ added in v0.9.0
func (in *ScopedToken) DeepCopy() *ScopedToken
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedToken.
func (*ScopedToken) DeepCopyInto ¶ added in v0.9.0
func (in *ScopedToken) DeepCopyInto(out *ScopedToken)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScopedToken) DeepCopyObject ¶ added in v0.9.0
func (in *ScopedToken) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ScopedToken) GetCondition ¶ added in v0.9.0
func (mg *ScopedToken) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this ScopedToken.
func (*ScopedToken) GetConnectionDetailsMapping ¶ added in v0.9.0
func (tr *ScopedToken) GetConnectionDetailsMapping() map[string]string
GetConnectionDetailsMapping for this ScopedToken
func (*ScopedToken) GetDeletionPolicy ¶ added in v0.9.0
func (mg *ScopedToken) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this ScopedToken.
func (*ScopedToken) GetID ¶ added in v0.9.0
func (tr *ScopedToken) GetID() string
GetID returns ID of underlying Terraform resource of this ScopedToken
func (*ScopedToken) GetInitParameters ¶ added in v0.9.0
func (tr *ScopedToken) GetInitParameters() (map[string]any, error)
GetInitParameters of this ScopedToken
func (*ScopedToken) GetManagementPolicies ¶ added in v0.9.0
func (mg *ScopedToken) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this ScopedToken.
func (*ScopedToken) GetMergedParameters ¶ added in v0.9.0
func (tr *ScopedToken) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
GetInitParameters of this ScopedToken
func (*ScopedToken) GetObservation ¶ added in v0.9.0
func (tr *ScopedToken) GetObservation() (map[string]any, error)
GetObservation of this ScopedToken
func (*ScopedToken) GetParameters ¶ added in v0.9.0
func (tr *ScopedToken) GetParameters() (map[string]any, error)
GetParameters of this ScopedToken
func (*ScopedToken) GetProviderConfigReference ¶ added in v0.9.0
func (mg *ScopedToken) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this ScopedToken.
func (*ScopedToken) GetTerraformResourceType ¶ added in v0.9.0
func (mg *ScopedToken) GetTerraformResourceType() string
GetTerraformResourceType returns Terraform resource type for this ScopedToken
func (*ScopedToken) GetTerraformSchemaVersion ¶ added in v0.9.0
func (tr *ScopedToken) GetTerraformSchemaVersion() int
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*ScopedToken) GetWriteConnectionSecretToReference ¶ added in v0.9.0
func (mg *ScopedToken) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this ScopedToken.
func (*ScopedToken) Hub ¶ added in v0.9.0
func (tr *ScopedToken) Hub()
Hub marks this type as a conversion hub.
func (*ScopedToken) LateInitialize ¶ added in v0.9.0
func (tr *ScopedToken) LateInitialize(attrs []byte) (bool, error)
LateInitialize this ScopedToken using its observed tfState. returns True if there are any spec changes for the resource.
func (*ScopedToken) SetConditions ¶ added in v0.9.0
func (mg *ScopedToken) SetConditions(c ...xpv1.Condition)
SetConditions of this ScopedToken.
func (*ScopedToken) SetDeletionPolicy ¶ added in v0.9.0
func (mg *ScopedToken) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this ScopedToken.
func (*ScopedToken) SetManagementPolicies ¶ added in v0.9.0
func (mg *ScopedToken) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this ScopedToken.
func (*ScopedToken) SetObservation ¶ added in v0.9.0
func (tr *ScopedToken) SetObservation(obs map[string]any) error
SetObservation for this ScopedToken
func (*ScopedToken) SetParameters ¶ added in v0.9.0
func (tr *ScopedToken) SetParameters(params map[string]any) error
SetParameters for this ScopedToken
func (*ScopedToken) SetProviderConfigReference ¶ added in v0.9.0
func (mg *ScopedToken) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this ScopedToken.
func (*ScopedToken) SetWriteConnectionSecretToReference ¶ added in v0.9.0
func (mg *ScopedToken) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this ScopedToken.
type ScopedTokenInitParameters ¶ added in v0.9.0
type ScopedTokenInitParameters struct {
// IDs. Limited to total 255 characters. Default to '@' if not set. Service ID must begin with valid JFrog service type. Options: jfrt, jfxr, jfpip, jfds, jfmc, jfac, jfevt, jfmd, jfcon, or *. For instructions to retrieve the Artifactory Service ID see this documentation
// A list of the other instances or services that should accept this token identified by their Service-IDs. Limited to total 255 characters. Default to '*@*' if not set. Service ID must begin with valid JFrog service type. Options: jfrt, jfxr, jfpip, jfds, jfmc, jfac, jfevt, jfmd, jfcon, or *. For instructions to retrieve the Artifactory Service ID see this [documentation](https://jfrog.com/help/r/jfrog-rest-apis/get-service-id)
// +listType=set
Audiences []*string `json:"audiences,omitempty" tf:"audiences,omitempty"`
// (String) Free text token description. Useful for filtering and managing tokens. Limited to 1024 characters.
// Free text token description. Useful for filtering and managing tokens. Limited to 1024 characters.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// negative. Default value is based on configuration in 'access.config.yaml'. See API documentation for details. Access Token would not be saved by Artifactory if this is less than the persistence threshold value (default to 10800 seconds) set in Access configuration. See official documentation for details.
// The amount of time, in seconds, it would take for the token to expire. An admin shall be able to set whether expiry is mandatory, what is the default expiry, and what is the maximum expiry allowed. Must be non-negative. Default value is based on configuration in 'access.config.yaml'. See [API documentation](https://jfrog.com/help/r/jfrog-rest-apis/revoke-token-by-id) for details. Access Token would not be saved by Artifactory if this is less than the persistence threshold value (default to 10800 seconds) set in Access configuration. See [official documentation](https://jfrog.com/help/r/jfrog-platform-administration-documentation/persistency-threshold) for details.
ExpiresIn *float64 `json:"expiresIn,omitempty" tf:"expires_in,omitempty"`
// (String) The grant type used to authenticate the request. In this case, the only value supported is client_credentials which is also the default value if this parameter is not specified.
// The grant type used to authenticate the request. In this case, the only value supported is `client_credentials` which is also the default value if this parameter is not specified.
GrantType *string `json:"grantType,omitempty" tf:"grant_type,omitempty"`
// (Boolean) Toggle to ignore warning message when token was missing or not created and stored by Artifactory. Default is false.
// Toggle to ignore warning message when token was missing or not created and stored by Artifactory. Default is `false`.
IgnoreMissingTokenWarning *bool `json:"ignoreMissingTokenWarning,omitempty" tf:"ignore_missing_token_warning,omitempty"`
// (Boolean) Also create a reference token which can be used like an API key. Default is false.
// Also create a reference token which can be used like an API key. Default is `false`.
IncludeReferenceToken *bool `json:"includeReferenceToken,omitempty" tf:"include_reference_token,omitempty"`
// (String) The project for which this token is created. Enter the project name on which you want to apply this token.
// The project for which this token is created. Enter the project name on which you want to apply this token.
ProjectKey *string `json:"projectKey,omitempty" tf:"project_key,omitempty"`
// (Boolean) Is this token refreshable? Default is false.
// Is this token refreshable? Default is `false`.
Refreshable *bool `json:"refreshable,omitempty" tf:"refreshable,omitempty"`
// admin users can only set the scope to a subset of the groups to which they belong. The supported scopes include:
// The scope of access that the token provides. Access to the REST API is always provided by default. Administrators can set any scope, while non-admin users can only set the scope to a subset of the groups to which they belong. The supported scopes include:
// - `applied-permissions/user` - provides user access. If left at the default setting, the token will be created with the user-identity scope, which allows users to identify themselves in the Platform but does not grant any specific access permissions.
// - `applied-permissions/admin` - the scope assigned to admin users.
// - `applied-permissions/groups` - this scope assigns permissions to groups using the following format: `applied-permissions/groups:<group-name>[,<group-name>...]`
// - Resource Permissions: From Artifactory 7.38.x, resource permissions scoped tokens are also supported in the REST API. A permission can be represented as a scope token string in the following format: `<resource-type>:<target>[/<sub-resource>]:<actions>`
// - Where:
// - `<resource-type>` - one of the permission resource types, from a predefined closed list. Currently, the only resource type that is supported is the artifact resource type.
// - `<target>` - the target resource, can be exact name or a pattern
// - `<sub-resource>` - optional, the target sub-resource, can be exact name or a pattern
// - `<actions>` - comma-separated list of action acronyms. The actions allowed are `r`, `w`, `d`, `a`, `m`, `x`, `s`, or any combination of these actions. To allow all actions - use `*`
// - Examples:
// - `["applied-permissions/user", "artifact:generic-local:r"]`
// - `["applied-permissions/group", "artifact:generic-local/path:*"]`
// - `["applied-permissions/admin", "system:metrics:r", "artifact:generic-local:*"]`
// - `applied-permissions/roles:project-key` - provides access to elements associated with the project based on the project role. For example, `applied-permissions/roles:project-type:developer,qa`.
//
// - System Permissions: Used to grant access to system resources. A permission can be represented as a scope token string in the following format: `system:(metrics|livelogs|identities|permissions):<actions>`
// - Where:
// - `metrics|livelogs|identities|permissions` - one of these options can be chosen - `<actions>` - comma-separated list of action acronyms. The actions allowed are `r`, `w`, `d`, `a`, `m`, `x`, `s`, or any combination of these actions. To allow all actions - use `*`
// - Examples:
// - `["system:livelogs:r", "system:metrics:r,w,d"]`
// ->The scope to assign to the token should be provided as a list of scope tokens, limited to 500 characters in total.
// From Artifactory 7.84.3, [project admins](https://jfrog.com/help/r/jfrog-platform-administration-documentation/access-token-creation-by-project-admins) can create access tokens that are tied to the projects in which they hold administrative privileges.
// +listType=set
Scopes []*string `json:"scopes,omitempty" tf:"scopes,omitempty"`
// either from the user of the authenticated token or based on the username (if basic auth was used). The username is then used to set the subject of the token: /users/. Limited to 255 characters.
// The user name for which this token is created. The username is based on the authenticated user - either from the user of the authenticated token or based on the username (if basic auth was used). The username is then used to set the subject of the token: <service-id>/users/<username>. Limited to 255 characters.
Username *string `json:"username,omitempty" tf:"username,omitempty"`
}
func (*ScopedTokenInitParameters) DeepCopy ¶ added in v0.9.0
func (in *ScopedTokenInitParameters) DeepCopy() *ScopedTokenInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedTokenInitParameters.
func (*ScopedTokenInitParameters) DeepCopyInto ¶ added in v0.9.0
func (in *ScopedTokenInitParameters) DeepCopyInto(out *ScopedTokenInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScopedTokenList ¶ added in v0.9.0
type ScopedTokenList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ScopedToken `json:"items"`
}
ScopedTokenList contains a list of ScopedTokens
func (*ScopedTokenList) DeepCopy ¶ added in v0.9.0
func (in *ScopedTokenList) DeepCopy() *ScopedTokenList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedTokenList.
func (*ScopedTokenList) DeepCopyInto ¶ added in v0.9.0
func (in *ScopedTokenList) DeepCopyInto(out *ScopedTokenList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScopedTokenList) DeepCopyObject ¶ added in v0.9.0
func (in *ScopedTokenList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ScopedTokenList) GetItems ¶ added in v0.9.0
func (l *ScopedTokenList) GetItems() []resource.Managed
GetItems of this ScopedTokenList.
type ScopedTokenObservation ¶ added in v0.9.0
type ScopedTokenObservation struct {
// IDs. Limited to total 255 characters. Default to '@' if not set. Service ID must begin with valid JFrog service type. Options: jfrt, jfxr, jfpip, jfds, jfmc, jfac, jfevt, jfmd, jfcon, or *. For instructions to retrieve the Artifactory Service ID see this documentation
// A list of the other instances or services that should accept this token identified by their Service-IDs. Limited to total 255 characters. Default to '*@*' if not set. Service ID must begin with valid JFrog service type. Options: jfrt, jfxr, jfpip, jfds, jfmc, jfac, jfevt, jfmd, jfcon, or *. For instructions to retrieve the Artifactory Service ID see this [documentation](https://jfrog.com/help/r/jfrog-rest-apis/get-service-id)
// +listType=set
Audiences []*string `json:"audiences,omitempty" tf:"audiences,omitempty"`
// (String) Free text token description. Useful for filtering and managing tokens. Limited to 1024 characters.
// Free text token description. Useful for filtering and managing tokens. Limited to 1024 characters.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// negative. Default value is based on configuration in 'access.config.yaml'. See API documentation for details. Access Token would not be saved by Artifactory if this is less than the persistence threshold value (default to 10800 seconds) set in Access configuration. See official documentation for details.
// The amount of time, in seconds, it would take for the token to expire. An admin shall be able to set whether expiry is mandatory, what is the default expiry, and what is the maximum expiry allowed. Must be non-negative. Default value is based on configuration in 'access.config.yaml'. See [API documentation](https://jfrog.com/help/r/jfrog-rest-apis/revoke-token-by-id) for details. Access Token would not be saved by Artifactory if this is less than the persistence threshold value (default to 10800 seconds) set in Access configuration. See [official documentation](https://jfrog.com/help/r/jfrog-platform-administration-documentation/persistency-threshold) for details.
ExpiresIn *float64 `json:"expiresIn,omitempty" tf:"expires_in,omitempty"`
// (Number) Returns the token expiry.
// Returns the token expiry.
Expiry *float64 `json:"expiry,omitempty" tf:"expiry,omitempty"`
// (String) The grant type used to authenticate the request. In this case, the only value supported is client_credentials which is also the default value if this parameter is not specified.
// The grant type used to authenticate the request. In this case, the only value supported is `client_credentials` which is also the default value if this parameter is not specified.
GrantType *string `json:"grantType,omitempty" tf:"grant_type,omitempty"`
// (String) The ID of this resource.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// (Boolean) Toggle to ignore warning message when token was missing or not created and stored by Artifactory. Default is false.
// Toggle to ignore warning message when token was missing or not created and stored by Artifactory. Default is `false`.
IgnoreMissingTokenWarning *bool `json:"ignoreMissingTokenWarning,omitempty" tf:"ignore_missing_token_warning,omitempty"`
// (Boolean) Also create a reference token which can be used like an API key. Default is false.
// Also create a reference token which can be used like an API key. Default is `false`.
IncludeReferenceToken *bool `json:"includeReferenceToken,omitempty" tf:"include_reference_token,omitempty"`
// (Number) Returns the token issued at date/time.
// Returns the token issued at date/time.
IssuedAt *float64 `json:"issuedAt,omitempty" tf:"issued_at,omitempty"`
// (String) Returns the token issuer.
// Returns the token issuer.
Issuer *string `json:"issuer,omitempty" tf:"issuer,omitempty"`
// (String) The project for which this token is created. Enter the project name on which you want to apply this token.
// The project for which this token is created. Enter the project name on which you want to apply this token.
ProjectKey *string `json:"projectKey,omitempty" tf:"project_key,omitempty"`
// (Boolean) Is this token refreshable? Default is false.
// Is this token refreshable? Default is `false`.
Refreshable *bool `json:"refreshable,omitempty" tf:"refreshable,omitempty"`
// admin users can only set the scope to a subset of the groups to which they belong. The supported scopes include:
// The scope of access that the token provides. Access to the REST API is always provided by default. Administrators can set any scope, while non-admin users can only set the scope to a subset of the groups to which they belong. The supported scopes include:
// - `applied-permissions/user` - provides user access. If left at the default setting, the token will be created with the user-identity scope, which allows users to identify themselves in the Platform but does not grant any specific access permissions.
// - `applied-permissions/admin` - the scope assigned to admin users.
// - `applied-permissions/groups` - this scope assigns permissions to groups using the following format: `applied-permissions/groups:<group-name>[,<group-name>...]`
// - Resource Permissions: From Artifactory 7.38.x, resource permissions scoped tokens are also supported in the REST API. A permission can be represented as a scope token string in the following format: `<resource-type>:<target>[/<sub-resource>]:<actions>`
// - Where:
// - `<resource-type>` - one of the permission resource types, from a predefined closed list. Currently, the only resource type that is supported is the artifact resource type.
// - `<target>` - the target resource, can be exact name or a pattern
// - `<sub-resource>` - optional, the target sub-resource, can be exact name or a pattern
// - `<actions>` - comma-separated list of action acronyms. The actions allowed are `r`, `w`, `d`, `a`, `m`, `x`, `s`, or any combination of these actions. To allow all actions - use `*`
// - Examples:
// - `["applied-permissions/user", "artifact:generic-local:r"]`
// - `["applied-permissions/group", "artifact:generic-local/path:*"]`
// - `["applied-permissions/admin", "system:metrics:r", "artifact:generic-local:*"]`
// - `applied-permissions/roles:project-key` - provides access to elements associated with the project based on the project role. For example, `applied-permissions/roles:project-type:developer,qa`.
//
// - System Permissions: Used to grant access to system resources. A permission can be represented as a scope token string in the following format: `system:(metrics|livelogs|identities|permissions):<actions>`
// - Where:
// - `metrics|livelogs|identities|permissions` - one of these options can be chosen - `<actions>` - comma-separated list of action acronyms. The actions allowed are `r`, `w`, `d`, `a`, `m`, `x`, `s`, or any combination of these actions. To allow all actions - use `*`
// - Examples:
// - `["system:livelogs:r", "system:metrics:r,w,d"]`
// ->The scope to assign to the token should be provided as a list of scope tokens, limited to 500 characters in total.
// From Artifactory 7.84.3, [project admins](https://jfrog.com/help/r/jfrog-platform-administration-documentation/access-token-creation-by-project-admins) can create access tokens that are tied to the projects in which they hold administrative privileges.
// +listType=set
Scopes []*string `json:"scopes,omitempty" tf:"scopes,omitempty"`
// (String) Returns the token type.
// Returns the token type.
Subject *string `json:"subject,omitempty" tf:"subject,omitempty"`
// (String) Returns the token type.
// Returns the token type.
TokenType *string `json:"tokenType,omitempty" tf:"token_type,omitempty"`
// either from the user of the authenticated token or based on the username (if basic auth was used). The username is then used to set the subject of the token: /users/. Limited to 255 characters.
// The user name for which this token is created. The username is based on the authenticated user - either from the user of the authenticated token or based on the username (if basic auth was used). The username is then used to set the subject of the token: <service-id>/users/<username>. Limited to 255 characters.
Username *string `json:"username,omitempty" tf:"username,omitempty"`
}
func (*ScopedTokenObservation) DeepCopy ¶ added in v0.9.0
func (in *ScopedTokenObservation) DeepCopy() *ScopedTokenObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedTokenObservation.
func (*ScopedTokenObservation) DeepCopyInto ¶ added in v0.9.0
func (in *ScopedTokenObservation) DeepCopyInto(out *ScopedTokenObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScopedTokenParameters ¶ added in v0.9.0
type ScopedTokenParameters struct {
// IDs. Limited to total 255 characters. Default to '@' if not set. Service ID must begin with valid JFrog service type. Options: jfrt, jfxr, jfpip, jfds, jfmc, jfac, jfevt, jfmd, jfcon, or *. For instructions to retrieve the Artifactory Service ID see this documentation
// A list of the other instances or services that should accept this token identified by their Service-IDs. Limited to total 255 characters. Default to '*@*' if not set. Service ID must begin with valid JFrog service type. Options: jfrt, jfxr, jfpip, jfds, jfmc, jfac, jfevt, jfmd, jfcon, or *. For instructions to retrieve the Artifactory Service ID see this [documentation](https://jfrog.com/help/r/jfrog-rest-apis/get-service-id)
// +kubebuilder:validation:Optional
// +listType=set
Audiences []*string `json:"audiences,omitempty" tf:"audiences,omitempty"`
// (String) Free text token description. Useful for filtering and managing tokens. Limited to 1024 characters.
// Free text token description. Useful for filtering and managing tokens. Limited to 1024 characters.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// negative. Default value is based on configuration in 'access.config.yaml'. See API documentation for details. Access Token would not be saved by Artifactory if this is less than the persistence threshold value (default to 10800 seconds) set in Access configuration. See official documentation for details.
// The amount of time, in seconds, it would take for the token to expire. An admin shall be able to set whether expiry is mandatory, what is the default expiry, and what is the maximum expiry allowed. Must be non-negative. Default value is based on configuration in 'access.config.yaml'. See [API documentation](https://jfrog.com/help/r/jfrog-rest-apis/revoke-token-by-id) for details. Access Token would not be saved by Artifactory if this is less than the persistence threshold value (default to 10800 seconds) set in Access configuration. See [official documentation](https://jfrog.com/help/r/jfrog-platform-administration-documentation/persistency-threshold) for details.
// +kubebuilder:validation:Optional
ExpiresIn *float64 `json:"expiresIn,omitempty" tf:"expires_in,omitempty"`
// (String) The grant type used to authenticate the request. In this case, the only value supported is client_credentials which is also the default value if this parameter is not specified.
// The grant type used to authenticate the request. In this case, the only value supported is `client_credentials` which is also the default value if this parameter is not specified.
// +kubebuilder:validation:Optional
GrantType *string `json:"grantType,omitempty" tf:"grant_type,omitempty"`
// (Boolean) Toggle to ignore warning message when token was missing or not created and stored by Artifactory. Default is false.
// Toggle to ignore warning message when token was missing or not created and stored by Artifactory. Default is `false`.
// +kubebuilder:validation:Optional
IgnoreMissingTokenWarning *bool `json:"ignoreMissingTokenWarning,omitempty" tf:"ignore_missing_token_warning,omitempty"`
// (Boolean) Also create a reference token which can be used like an API key. Default is false.
// Also create a reference token which can be used like an API key. Default is `false`.
// +kubebuilder:validation:Optional
IncludeReferenceToken *bool `json:"includeReferenceToken,omitempty" tf:"include_reference_token,omitempty"`
// (String) The project for which this token is created. Enter the project name on which you want to apply this token.
// The project for which this token is created. Enter the project name on which you want to apply this token.
// +kubebuilder:validation:Optional
ProjectKey *string `json:"projectKey,omitempty" tf:"project_key,omitempty"`
// (Boolean) Is this token refreshable? Default is false.
// Is this token refreshable? Default is `false`.
// +kubebuilder:validation:Optional
Refreshable *bool `json:"refreshable,omitempty" tf:"refreshable,omitempty"`
// admin users can only set the scope to a subset of the groups to which they belong. The supported scopes include:
// The scope of access that the token provides. Access to the REST API is always provided by default. Administrators can set any scope, while non-admin users can only set the scope to a subset of the groups to which they belong. The supported scopes include:
// - `applied-permissions/user` - provides user access. If left at the default setting, the token will be created with the user-identity scope, which allows users to identify themselves in the Platform but does not grant any specific access permissions.
// - `applied-permissions/admin` - the scope assigned to admin users.
// - `applied-permissions/groups` - this scope assigns permissions to groups using the following format: `applied-permissions/groups:<group-name>[,<group-name>...]`
// - Resource Permissions: From Artifactory 7.38.x, resource permissions scoped tokens are also supported in the REST API. A permission can be represented as a scope token string in the following format: `<resource-type>:<target>[/<sub-resource>]:<actions>`
// - Where:
// - `<resource-type>` - one of the permission resource types, from a predefined closed list. Currently, the only resource type that is supported is the artifact resource type.
// - `<target>` - the target resource, can be exact name or a pattern
// - `<sub-resource>` - optional, the target sub-resource, can be exact name or a pattern
// - `<actions>` - comma-separated list of action acronyms. The actions allowed are `r`, `w`, `d`, `a`, `m`, `x`, `s`, or any combination of these actions. To allow all actions - use `*`
// - Examples:
// - `["applied-permissions/user", "artifact:generic-local:r"]`
// - `["applied-permissions/group", "artifact:generic-local/path:*"]`
// - `["applied-permissions/admin", "system:metrics:r", "artifact:generic-local:*"]`
// - `applied-permissions/roles:project-key` - provides access to elements associated with the project based on the project role. For example, `applied-permissions/roles:project-type:developer,qa`.
//
// - System Permissions: Used to grant access to system resources. A permission can be represented as a scope token string in the following format: `system:(metrics|livelogs|identities|permissions):<actions>`
// - Where:
// - `metrics|livelogs|identities|permissions` - one of these options can be chosen - `<actions>` - comma-separated list of action acronyms. The actions allowed are `r`, `w`, `d`, `a`, `m`, `x`, `s`, or any combination of these actions. To allow all actions - use `*`
// - Examples:
// - `["system:livelogs:r", "system:metrics:r,w,d"]`
// ->The scope to assign to the token should be provided as a list of scope tokens, limited to 500 characters in total.
// From Artifactory 7.84.3, [project admins](https://jfrog.com/help/r/jfrog-platform-administration-documentation/access-token-creation-by-project-admins) can create access tokens that are tied to the projects in which they hold administrative privileges.
// +kubebuilder:validation:Optional
// +listType=set
Scopes []*string `json:"scopes,omitempty" tf:"scopes,omitempty"`
// either from the user of the authenticated token or based on the username (if basic auth was used). The username is then used to set the subject of the token: /users/. Limited to 255 characters.
// The user name for which this token is created. The username is based on the authenticated user - either from the user of the authenticated token or based on the username (if basic auth was used). The username is then used to set the subject of the token: <service-id>/users/<username>. Limited to 255 characters.
// +kubebuilder:validation:Optional
Username *string `json:"username,omitempty" tf:"username,omitempty"`
}
func (*ScopedTokenParameters) DeepCopy ¶ added in v0.9.0
func (in *ScopedTokenParameters) DeepCopy() *ScopedTokenParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedTokenParameters.
func (*ScopedTokenParameters) DeepCopyInto ¶ added in v0.9.0
func (in *ScopedTokenParameters) DeepCopyInto(out *ScopedTokenParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScopedTokenSpec ¶ added in v0.9.0
type ScopedTokenSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ScopedTokenParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider ScopedTokenInitParameters `json:"initProvider,omitempty"`
}
ScopedTokenSpec defines the desired state of ScopedToken
func (*ScopedTokenSpec) DeepCopy ¶ added in v0.9.0
func (in *ScopedTokenSpec) DeepCopy() *ScopedTokenSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedTokenSpec.
func (*ScopedTokenSpec) DeepCopyInto ¶ added in v0.9.0
func (in *ScopedTokenSpec) DeepCopyInto(out *ScopedTokenSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScopedTokenStatus ¶ added in v0.9.0
type ScopedTokenStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ScopedTokenObservation `json:"atProvider,omitempty"`
}
ScopedTokenStatus defines the observed state of ScopedToken.
func (*ScopedTokenStatus) DeepCopy ¶ added in v0.9.0
func (in *ScopedTokenStatus) DeepCopy() *ScopedTokenStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedTokenStatus.
func (*ScopedTokenStatus) DeepCopyInto ¶ added in v0.9.0
func (in *ScopedTokenStatus) DeepCopyInto(out *ScopedTokenStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.