func NewCmdCreateService(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command { … }
type ServiceOptions …
func NewServiceOptions(ioStreams genericiooptions.IOStreams, serviceType corev1.ServiceType) *ServiceOptions { … }
func (o *ServiceOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error { … }
func (o *ServiceOptions) Validate() error { … }
func (o *ServiceOptions) createService() (*corev1.Service, error) { … }
func (o *ServiceOptions) Run() error { … }
var serviceClusterIPLong …
var serviceClusterIPExample …
func NewCmdCreateServiceClusterIP(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command { … }
var serviceNodePortLong …
var serviceNodePortExample …
func NewCmdCreateServiceNodePort(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command { … }
var serviceLoadBalancerLong …
var serviceLoadBalancerExample …
func NewCmdCreateServiceLoadBalancer(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command { … }
var serviceExternalNameLong …
var serviceExternalNameExample …
func NewCmdCreateServiceExternalName(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command { … }
func parsePorts(portString string) (int32, intstr.IntOrString, error) { … }