pub struct EntitlementsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> EntitlementsBuilder<S>
impl<S: State> EntitlementsBuilder<S>
Sourcepub fn build(self) -> Entitlementswhere
S: IsComplete,
pub fn build(self) -> Entitlementswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn applications(
self,
value: Vec<ApplicationEntitlements>,
) -> EntitlementsBuilder<SetApplications<S>>where
S::Applications: IsUnset,
pub fn applications(
self,
value: Vec<ApplicationEntitlements>,
) -> EntitlementsBuilder<SetApplications<S>>where
S::Applications: IsUnset,
Required.
One entry per application on the asking machine.
An identity belongs to a machine, so an agent asks on behalf of the box and gets an answer for every workload on it. The flat fields above describe a single-application machine, which is every machine today; on a machine hosting several they are left at their defaults and this list is the answer.
Sourcepub fn certificates(
self,
value: Vec<HeldCertificate>,
) -> EntitlementsBuilder<SetCertificates<S>>where
S::Certificates: IsUnset,
pub fn certificates(
self,
value: Vec<HeldCertificate>,
) -> EntitlementsBuilder<SetCertificates<S>>where
S::Certificates: IsUnset,
Required.
The certificates Canopy holds for this server.
Sourcepub fn domains(self, value: Vec<String>) -> EntitlementsBuilder<SetDomains<S>>where
S::Domains: IsUnset,
pub fn domains(self, value: Vec<String>) -> EntitlementsBuilder<SetDomains<S>>where
S::Domains: IsUnset,
Required.
The domains this server’s group controls. Any name at or beneath one of these is a name this server may act on — which is what lets an agent request a certificate before anything asks for one.
Sourcepub fn may_manage_dns(
self,
value: bool,
) -> EntitlementsBuilder<SetMayManageDns<S>>where
S::MayManageDns: IsUnset,
pub fn may_manage_dns(
self,
value: bool,
) -> EntitlementsBuilder<SetMayManageDns<S>>where
S::MayManageDns: IsUnset,
Required.
Whether this server may manage its own DNS records.
Sourcepub fn may_manage_tls(
self,
value: bool,
) -> EntitlementsBuilder<SetMayManageTls<S>>where
S::MayManageTls: IsUnset,
pub fn may_manage_tls(
self,
value: bool,
) -> EntitlementsBuilder<SetMayManageTls<S>>where
S::MayManageTls: IsUnset,
Required.
Whether this server may obtain its own TLS certificates.
Sourcepub fn paused(self, value: bool) -> EntitlementsBuilder<SetPaused<S>>where
S::Paused: IsUnset,
pub fn paused(self, value: bool) -> EntitlementsBuilder<SetPaused<S>>where
S::Paused: IsUnset,
Required.
Whether Canopy is currently making no new changes on this server’s behalf. While true, requests are refused and an agent should wait.
Sourcepub fn registered_names(
self,
value: Vec<String>,
) -> EntitlementsBuilder<SetRegisteredNames<S>>where
S::RegisteredNames: IsUnset,
pub fn registered_names(
self,
value: Vec<String>,
) -> EntitlementsBuilder<SetRegisteredNames<S>>where
S::RegisteredNames: IsUnset,
Required.
The names this server has registered addresses for.