Configurations

Struct Configurations 

Source
pub struct Configurations {
Show 55 fields pub auth_mode: Option<String>, pub primary_auth_mode: Option<Option<bool>>, pub ldap_base_dn: Option<String>, pub ldap_filter: Option<String>, pub ldap_group_base_dn: Option<String>, pub ldap_group_admin_dn: Option<String>, pub ldap_group_attribute_name: Option<String>, pub ldap_group_search_filter: Option<String>, pub ldap_group_search_scope: Option<i32>, pub ldap_group_attach_parallel: Option<bool>, pub ldap_scope: Option<i32>, pub ldap_search_dn: Option<String>, pub ldap_search_password: Option<String>, pub ldap_timeout: Option<i32>, pub ldap_uid: Option<String>, pub ldap_url: Option<String>, pub ldap_verify_cert: Option<bool>, pub ldap_group_membership_attribute: Option<String>, pub project_creation_restriction: Option<String>, pub read_only: Option<bool>, pub self_registration: Option<bool>, pub token_expiration: Option<i32>, pub uaa_client_id: Option<String>, pub uaa_client_secret: Option<String>, pub uaa_endpoint: Option<String>, pub uaa_verify_cert: Option<bool>, pub http_authproxy_endpoint: Option<String>, pub http_authproxy_tokenreview_endpoint: Option<String>, pub http_authproxy_admin_groups: Option<String>, pub http_authproxy_admin_usernames: Option<String>, pub http_authproxy_verify_cert: Option<bool>, pub http_authproxy_skip_search: Option<bool>, pub http_authproxy_server_certificate: Option<String>, pub oidc_name: Option<String>, pub oidc_endpoint: Option<String>, pub oidc_client_id: Option<String>, pub oidc_client_secret: Option<String>, pub oidc_groups_claim: Option<String>, pub oidc_admin_group: Option<String>, pub oidc_group_filter: Option<String>, pub oidc_scope: Option<String>, pub oidc_user_claim: Option<String>, pub oidc_verify_cert: Option<bool>, pub oidc_auto_onboard: Option<bool>, pub oidc_extra_redirect_parms: Option<String>, pub robot_token_duration: Option<i32>, pub robot_name_prefix: Option<String>, pub notification_enable: Option<bool>, pub quota_per_project_enable: Option<bool>, pub storage_per_project: Option<i32>, pub audit_log_forward_endpoint: Option<String>, pub skip_audit_log_database: Option<bool>, pub session_timeout: Option<i32>, pub scanner_skip_update_pulltime: Option<bool>, pub banner_message: Option<String>,
}

Fields§

§auth_mode: Option<String>

The auth mode of current system, such as "db_auth", "ldap_auth", "oidc_auth"

§primary_auth_mode: Option<Option<bool>>

The flag to indicate whether the current auth mode should consider as a primary one.

§ldap_base_dn: Option<String>

The Base DN for LDAP binding.

§ldap_filter: Option<String>

The filter for LDAP search

§ldap_group_base_dn: Option<String>

The base DN to search LDAP group.

§ldap_group_admin_dn: Option<String>

Specify the ldap group which have the same privilege with Harbor admin

§ldap_group_attribute_name: Option<String>

The attribute which is used as identity of the LDAP group, default is cn.’

§ldap_group_search_filter: Option<String>

The filter to search the ldap group

§ldap_group_search_scope: Option<i32>

The scope to search ldap group. ’‘0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE’’

§ldap_group_attach_parallel: Option<bool>

Attach LDAP user group information in parallel, the parallel worker count is 5

§ldap_scope: Option<i32>

The scope to search ldap users,‘0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE’

§ldap_search_dn: Option<String>

The DN of the user to do the search.

§ldap_search_password: Option<String>

The password of the ldap search dn

§ldap_timeout: Option<i32>

Timeout in seconds for connection to LDAP server

§ldap_uid: Option<String>

The attribute which is used as identity for the LDAP binding, such as "CN" or "SAMAccountname"

§ldap_url: Option<String>

The URL of LDAP server

§ldap_verify_cert: Option<bool>

Whether verify your OIDC server certificate, disable it if your OIDC server is hosted via self-hosted certificate.

§ldap_group_membership_attribute: Option<String>

The user attribute to identify the group membership

§project_creation_restriction: Option<String>

Indicate who can create projects, it could be ’‘adminonly’’ or ’‘everyone’’.

§read_only: Option<bool>

The flag to indicate whether Harbor is in readonly mode.

§self_registration: Option<bool>

Whether the Harbor instance supports self-registration. If it’’s set to false, admin need to add user to the instance.

§token_expiration: Option<i32>

The expiration time of the token for internal Registry, in minutes.

§uaa_client_id: Option<String>

The client id of UAA

§uaa_client_secret: Option<String>

The client secret of the UAA

§uaa_endpoint: Option<String>

The endpoint of the UAA

§uaa_verify_cert: Option<bool>

Verify the certificate in UAA server

§http_authproxy_endpoint: Option<String>

The endpoint of the HTTP auth

§http_authproxy_tokenreview_endpoint: Option<String>

The token review endpoint

§http_authproxy_admin_groups: Option<String>

The group which has the harbor admin privileges

§http_authproxy_admin_usernames: Option<String>

The username which has the harbor admin privileges

§http_authproxy_verify_cert: Option<bool>

Verify the HTTP auth provider’s certificate

§http_authproxy_skip_search: Option<bool>

Search user before onboard

§http_authproxy_server_certificate: Option<String>

The certificate of the HTTP auth provider

§oidc_name: Option<String>

The OIDC provider name

§oidc_endpoint: Option<String>

The endpoint of the OIDC provider

§oidc_client_id: Option<String>

The client ID of the OIDC provider

§oidc_client_secret: Option<String>

The OIDC provider secret

§oidc_groups_claim: Option<String>

The attribute claims the group name

§oidc_admin_group: Option<String>

The OIDC group which has the harbor admin privileges

§oidc_group_filter: Option<String>

The OIDC group filter which filters out the group name doesn’t match the regular expression

§oidc_scope: Option<String>

The scope of the OIDC provider

§oidc_user_claim: Option<String>

The attribute claims the username

§oidc_verify_cert: Option<bool>

Verify the OIDC provider’s certificate’

§oidc_auto_onboard: Option<bool>

Auto onboard the OIDC user

§oidc_extra_redirect_parms: Option<String>

Extra parameters to add when redirect request to OIDC provider

§robot_token_duration: Option<i32>

The robot account token duration in days

§robot_name_prefix: Option<String>

The rebot account name prefix

§notification_enable: Option<bool>

Enable notification

§quota_per_project_enable: Option<bool>

Enable quota per project

§storage_per_project: Option<i32>

The storage quota per project

§audit_log_forward_endpoint: Option<String>

The audit log forward endpoint

§skip_audit_log_database: Option<bool>

Skip audit log database

§session_timeout: Option<i32>

The session timeout for harbor, in minutes.

§scanner_skip_update_pulltime: Option<bool>

Whether or not to skip update pull time for scanner

§banner_message: Option<String>

The banner message for the UI.It is the stringified result of the banner message object

Implementations§

Trait Implementations§

Source§

impl Clone for Configurations

Source§

fn clone(&self) -> Configurations

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Configurations

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Configurations

Source§

fn default() -> Configurations

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Configurations

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Configurations

Source§

fn eq(&self, other: &Configurations) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Configurations

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Configurations

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,