- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetRemoteVersion (0.3 sec)
-
pkg/version/cobra.go
// CobraOptions holds options to be passed to `CobraCommandWithOptions` type CobraOptions struct { // GetRemoteVersion is the function to be invoked to retrieve remote versions for // Istio components. Optional. If not set, the 'version' subcommand will not attempt // to connect to a remote side, and CLI flags such as '--remote' will be hidden. GetRemoteVersion GetRemoteVersionFunc GetProxyVersions GetProxyVersionFunc }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 6.1K bytes - Viewed (0) -
pkg/version/cobra_test.go
"regexp" "strings" "testing" "github.com/spf13/cobra" "sigs.k8s.io/yaml" ) func TestOpts(t *testing.T) { ordinaryCmd := CobraCommand() remoteCmd := CobraCommandWithOptions( CobraOptions{GetRemoteVersion: mockRemoteMesh(&meshInfoMultiVersion, nil)}) cases := []struct { args string cmd *cobra.Command expectFail bool }{ { "version", ordinaryCmd, false, }, {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 29 14:15:26 UTC 2023 - 8.5K bytes - Viewed (0) -
istioctl/pkg/version/version.go
) func NewVersionCommand(ctx cli.Context) *cobra.Command { profileCmd := mesh.ProfileCmd(ctx) var opts clioptions.ControlPlaneOptions versionCmd := istioVersion.CobraCommandWithOptions(istioVersion.CobraOptions{ GetRemoteVersion: getRemoteInfoWrapper(ctx, &profileCmd, &opts), GetProxyVersions: getProxyInfoWrapper(ctx, &opts), }) opts.AttachControlPlaneFlags(versionCmd) versionCmd.Flags().VisitAll(func(flag *pflag.Flag) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 01:18:49 UTC 2024 - 8.3K bytes - Viewed (0)