pub trait ServiceExt: ResourceBuilder {
    // Required methods
    fn new(name: impl ToString) -> Self;
    fn cluster_ip(
        name: impl ToString,
        ports: impl IntoIterator<Item = ServicePort>
    ) -> Self;
    fn node_port(name: impl ToString) -> Self;
    fn load_balancer(name: impl ToString) -> Self;
    fn external_name(name: impl ToString, external_name: impl ToString) -> Self;
    fn with_labels(
        name: impl ToString,
        labels: impl IntoIterator<Item = (impl ToString, impl ToString)>
    ) -> Self;
    fn spec(self, spec: ServiceSpec) -> Self;
    fn selector(
        self,
        match_labels: impl IntoIterator<Item = (impl ToString, impl ToString)>
    ) -> Self;
}

Required Methods§

source

fn new(name: impl ToString) -> Self

source

fn cluster_ip( name: impl ToString, ports: impl IntoIterator<Item = ServicePort> ) -> Self

source

fn node_port(name: impl ToString) -> Self

source

fn load_balancer(name: impl ToString) -> Self

source

fn external_name(name: impl ToString, external_name: impl ToString) -> Self

source

fn with_labels( name: impl ToString, labels: impl IntoIterator<Item = (impl ToString, impl ToString)> ) -> Self

source

fn spec(self, spec: ServiceSpec) -> Self

source

fn selector( self, match_labels: impl IntoIterator<Item = (impl ToString, impl ToString)> ) -> Self

Implementors§